[ENet-discuss] ENet doesn't do servers?
GhostManZero
ghostmanzero at lutherlink.de
Fri Dec 14 02:02:30 PST 2007
UDP isnt like TCP, the packets take a bit more time to reach
someplace, and unlike TCP, since the packets arent streamed, you have
to wait about ~200 ms max or something to get the connection packet
sent, because, as said before, you dont have a "connection", therefore
the client must somehow tell the server it's "connecting".
Check the official tutorials, they show how a client should get the
"connect" notification, which is basically the same as what you're
intending to do.
Quoting Shawn Yarbrough <shawnyar217 at yahoo.com>:
>> udp itself
> is not connection oriented. Therefore no accept is used.
>
> Right. Thanks. Now I remember that about UDP. (Told you I was
> missing something.)
>
> I fixed my test program too, I believe. My client was exiting after
> the successful connection event. Because the test was "over".
> This was causing the server to not report the connection event at
> all. ENet probably should have reported a successful connection
> event followed by a disconnection event, but that's a minor
> complaint.
>
> When I finish cleaning up my client and server test programs, can I
> submit them for inclusion in ENet as sample code? To help people
> get up and running with less confusion.
>
> --Shawn
>
>
> ----- Original Message ----
> From: Marc Rochel <marc.rochel at udicom.de>
> To: Discussion of the ENet library <enet-discuss at cubik.org>
> Sent: Thursday, December 13, 2007 9:45:37 PM
> Subject: Re: [ENet-discuss] ENet doesn't do servers?
>
>
>
>
>
> DIV {
> MARGIN:0px;}
>
>
>
> Shawn,
>
>
>
> enet builds on top of udp. udp itself
> is not connection oriented. Therefore no accept is used. The logical
> connections
> are managed by enet itself.
>
>
>
> If you use tcp, you need to call
> accept at some point.
>
>
>
> Marc
>
>
>
>
>
>
>
>
> ____________________________________________________________________________________
> Never miss a thing. Make Yahoo your home page.
> http://www.yahoo.com/r/hs
--
~Zero
More information about the ENet-discuss
mailing list