Author Topic: Networking (Java-Python)  (Read 2568 times)

0 Members and 1 Guest are viewing this topic.

Offline Jake-Cub94Topic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 1
Networking (Java-Python)
« on: March 03, 2015, 05:04:06 PM »
Hello!
I have a simple question to ask.
which is easier:
Sending data from a Java socket to a Python socket,
Or:
Importing Jython into my Java project and sending the data from a Python socket to a python socket?

Many thanks.

Offline mklrobo

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Networking (Java-Python)
« Reply #1 on: March 04, 2015, 08:08:05 AM »
 :) Hello!
 As in your other post, I have used Perl to my advantage. If you are using
a Raspberry pi or beaglebone, it might be to your advantage to use
either one. I do not know if Perl is used on either one of those platforms.
Good luck!   ;D ;D ;D

Offline Jake-Cub94Topic starter

  • Beginner
  • *
  • Posts: 4
  • Helpful? 1
Re: Networking (Java-Python)
« Reply #2 on: March 06, 2015, 05:36:01 AM »
Hello!
Thanks for the reply!
Is it possible to send data from a server to a client on 4 different ports? Each port containing a different stream of data.
I'm hoping it is 😂

Offline mklrobo

  • Supreme Robot
  • *****
  • Posts: 558
  • Helpful? 15
  • From Dream to Design at the speed of Imagination!
Re: Networking (Java-Python)
« Reply #3 on: March 06, 2015, 07:55:22 AM »
 :)
From your question;
Is it possible to send data from a server to a client on 4 different ports? Each port containing a different stream of data.
The direct answer would be, yes.(from my experience) The more involved answer, in context, is that, the definition of
port will involve more than one issue.
4 different ports will have to be assigned to the program(s) that you want to send it to, and any physical
USB ports will have to to have virtual addresses allotted to the software ports that you have set up. This should
be able to be set up from a windows or Linux perspective. I tend to navigate to Linux, because of the
freedom of programming.(but there is a learning overhead that costs time). This is also not taking into account
the programming of sockets, in which lies the heart of communication.(in this case)
keep me posted, Good luck!   ;D ;D ;D
 

 


Get Your Ad Here