<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns:o = "urn:schemas-microsoft-com:office:office"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<STYLE type=text/css>DIV {
        MARGIN: 0px
}
</STYLE>

<META content="MSHTML 6.00.6000.16587" name=GENERATOR></HEAD>
<BODY><FONT style="FONT-SIZE: 10pt; COLOR: #000080; FONT-FAMILY: 'Arial'">
<DIV><FONT 
style="FONT-SIZE: 10pt; COLOR: #000080; FONT-FAMILY: 'Arial'">Shawn,</DIV>
<DIV><SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN><SPAN class=929334303-14122007>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.</SPAN></SPAN></DIV>
<DIV><SPAN><SPAN class=929334303-14122007></SPAN></SPAN>&nbsp;</DIV>
<DIV><SPAN><SPAN class=929334303-14122007>If you use tcp, you need to call 
accept at some point.</SPAN></SPAN></DIV>
<DIV><SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT 
style="FONT-SIZE: 10pt; COLOR: #000080; FONT-FAMILY: 'Arial'">Marc<BR><BR></FONT></DIV></FONT>
<DIV><FONT face=Arial color=#000080 size=2></FONT>&nbsp;</DIV><BR>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> enet-discuss-bounces@cubik.org 
[mailto:enet-discuss-bounces@cubik.org] <B>Im Auftrag von </B>Shawn 
Yarbrough<BR><B>Gesendet:</B> Freitag, 14. Dezember 2007 04:04<BR><B>An:</B> 
enet-discuss@cubik.org<BR><B>Betreff:</B> [ENet-discuss] ENet doesn't do 
servers?<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV style="FONT-SIZE: 12pt; FONT-FAMILY: courier,monaco,monospace,sans-serif">
<DIV>I must be missing something, but as far as I can tell, enet doesn't work 
for servers?<BR><BR>Some grepping of the ENet code base shows that the accept() 
system call is never called<BR>anywhere.&nbsp; (Unless the user calls 
enet_socket_accept() directly, which none of the<BR>ENet instructions say is 
expected to ever happen.)<BR><BR>But the UNIX listen(2) man page 
says:<BR><BR>&nbsp;&nbsp;&nbsp; To accept connections, a socket is first created 
with socket(2),<BR>&nbsp;&nbsp;&nbsp; a willingness to accept incoming 
connections and a queue limit<BR>&nbsp;&nbsp;&nbsp; for incoming connections are 
specified with listen(), and then<BR>&nbsp;&nbsp;&nbsp; the connections are 
accepted with accept(2).<BR><BR>ENet does call listen.&nbsp; Then it 
polls/selects on the socket waiting for activity, but<BR>when activity appears, 
it doesn't seem to do the right thing for a server which would<BR>be to do an 
accept() system call.<BR><BR>If I could find one example of a working server, 
using ENet, it would probably help me.<BR><BR>Some ENet developer please correct 
me if I'm wrong, or please confirm that I'm right<BR>and I'll help improve ENet 
to fix the problem.<BR><BR>Regards,<BR><BR>Shawn 
Yarbrough<BR><BR></DIV></DIV><BR>
<HR SIZE=1>
Never miss a thing. <A 
href="http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs">Make Yahoo 
your homepage.</A> </BODY></HTML>