View Single Post
  #2   Spotlight this post!  
Unread 30-01-2011, 19:17
sjspry sjspry is offline
Registered User
FRC #1984
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Kansas
Posts: 125
sjspry has a spectacular aura aboutsjspry has a spectacular aura aboutsjspry has a spectacular aura about
Re: Receiving UDP packets on the CRIO

A ServerSocketConnection is TCP, not UDP. You'd be wanting DatagramConnection, which is UDP. Open with

Quote:
Connector.open("datagram://:<port>");
for incoming, and

Quote:
Connector.open("datagram://<ip>:<port>");
for outgoing (I always thought UDP sockets were bidirectional, but I guess J2ME handles it somewhat differently).
Reply With Quote