Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Sockets



Hi all,

I'm trying to port a game (sdl_sopwith) from linux and face a little problem with the network mode. Whenever I play in multiplayer, the game is very slow, and the bandwidth use is just gigantic (a 100mb/s switch isn't enough (!) ). By comparison, when two PCs play together, the only traffic is one integer each 1/4 sec...

I used ethereal to see what was going on and noticed that a SYN/ACK handshaking was made whenever one of the clients sent an integer, which seems highly useless... This seems to be the only reason why the game is so slow.

I looked through the code and what I saw was just normal linux socket code...
Did I miss something in the code or is this something "normal" ?


Thanks in advance.

Pierre.
--
#include <stdsignature.h>
_______________________________________________
unix-porting mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/unix-porting
Do not post admin requests to the list. They will be ignored.





Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.