View Single Post
  #2   Spotlight this post!  
Unread 14-01-2012, 11:08
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
Re: Is TCP communication allowed in-game?

Quote:
Originally Posted by Lalaland1125 View Post
http://ideone.com/9dM5E
That's our code as of roughly now(I think the only change was that the robot does not support UTF, so we just switched that to ASCII or something).

javax.microedition.io is where the magic is.

If you want I can give you our server-side code, but it's just standard socket opening and accepting a connection(in C++ that is).

Why can't you just go with message = m_inputStream.readUTF(); instead of all that, which should do the same thing? and same for outputStream with writeUTF

Last edited by shuhao : 14-01-2012 at 11:15.