Socket.read slow
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Tuesday, July 16, 2002 12:11 AM

I'm writing a network game and is exchanging a state var (a long) between two (at the moment) machines using Java sockets.
(Socket)DataOutputStream.writeLong (write for that matter) is fast enough but (Socket)DataInputStream.readLong can take up to 300ms to complete. Thats to slow, causing flicker.

Any ideas

Re: Socket.read slow

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, July 16, 2002 08:32 AM

If TCP is too slow for your purpose, there is always UDP.

About | Sitemap | Contact