From: David B. <dav...@gm...> - 2011-02-08 20:07:34
|
Hi, On Tue, Feb 8, 2011 at 7:40 PM, deepak aggarwal <dee...@gm...> wrote: > hi David > I want to ask how a client find out server without knowing servers ip > address. > and whether i should use TCP or UDP connection for sending data to client. You might look at what we currently do. 1. Using UDP, you can broadcast a packet to every machine on the LAN. That's what the client does now. The server detects this and sends back a UDP packet telling the ip and port where the client can connect over TCP. 2. Use TCP for the actual game connection. Our data is not redundant, and there is no performance consideration here to suggest using UDP instead. HTH, David |