View Single Post
  #1   Spotlight this post!  
Unread 10-02-2014, 21:40
yash101 yash101 is offline
Curiosity | I have too much of it!
AKA: null
no team
 
Join Date: Oct 2012
Rookie Year: 2012
Location: devnull
Posts: 1,191
yash101 is an unknown quantity at this point
Java and C++ integration, UDP/TCP

I have written the skeleton of my vision code in C++ now. That runs on the Driver station computer parallel to all the FMS tasks. Our robot is coded in Java. To bring these together, C++ => Java, DS => cRIO, I am thinking about using network sockets.

I would prefer to use UDP because it is faster, but as I've heard, the UDP implementation is either non-existent or doesn't function well in Java, so TCP can work.

I'm persuading the rest of the programming team to work on a small socket client, but they probably either don't understand network sockets or they aren't showing GP.

How is the socket networking done with Java on the cRIO? I could use that as a starting point for getting the rest of the programmers to understand what I'm trying to do!