Re: Network protocol for Expert QotW #23
Bruce J Keeler <[email protected]>
| Newsgroups | gmane.comp.lang.perl.qotw.discuss |
|---|---|
| Message-ID | <1094774547.20827.3.camel@bjk-machine> |
On Thu, 2004-09-09 at 16:47, Daniel Martin wrote: > Rick Measham <[email protected]> writes: > > > The protocol as defined by Daniel looks good. TCP is the go. Lets use > > port 47898 which is an unassigned port at IANA (unless someone has > > good reason for some other port. If you wonder where I pulled that one > > from, grab your cell phone and type 'tetri' backwards) > > We actually need three port numbers - player one, player two, and > spectators (unless you intend that those roles are assigned in order > of connection) > Why not just use one port and have each connection tell the server what it is? When I read the original protocol you proposed, I thought this bit: PLAYER1 [Comment] PLAYER2 [Comment] SPECTATOR [Comment] was client -> server; I only now realized it wasn't upon re-reading. But it could be.