<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2912" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2>Hi again!</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2>Following your suggestion, I solved&nbsp;my problem by 
copying ip and port to my own structure pointed at by 
peer-&gt;data.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2>I've got a few more questions:</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2>How do you know when it's save to close a connection if you 
want to ensure that the packets you sent arrived. Right now, if I&nbsp;<FONT 
size=2>enet_peer_send</FONT> a packet with 1000000 bytes in it and then 
call&nbsp;<FONT size=2>enet_peer_disconnect afterwards,&nbsp;it&nbsp;disconnects 
quite fast (I get <FONT size=2>ENET_EVENT_TYPE_DISCONNECT quite fast)</FONT>, 
without waiting for the packet to arrive. Do I have to wait manually somehow? I 
sent the packet with <FONT 
size=2>ENET_PACKET_FLAG_RELIABLE.</FONT></FONT></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2>Another thing that made me wonder: If I send&nbsp;the large 
packet on channel 1. While it gets transferred, I send small packets of 16 bytes 
on channel 0. All ENET_PACKET_FLAG_RELIABLE.&nbsp;Now, I'ld expect the small 
packets to arrive before the large packet arrives, because they are small and on 
another channel. What happens is, nothing arrives until the large packet got 
transmitted. Suddenly, the large packet arrives and all the small ones I sent in 
the meanwhile all together. Shouldn't they arrive faster? Like a large 
background transfer with small fast packets in the foreground. Is it supposed 
to&nbsp;behave like that or did I do anything wrong?</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2>Apart from that, enet is a very nice lib. Much better 
working from the beginning than all the other libs out there I tried 
...</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2>Best regards and thanks for your fast reply until 
now</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006>&nbsp;&nbsp;&nbsp; <FONT 
face=Arial color=#0000ff size=2>Marc</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=525594417-04072006><FONT face=Arial 
color=#0000ff size=2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>Von:</B> 
enet-discuss-bounces@cubik.org [mailto:enet-discuss-bounces@cubik.org] <B>Im 
Auftrag von </B>Paul Collier<BR><B>Gesendet:</B> Dienstag, 4. Juli 2006 
18:05<BR><B>An:</B> Discussion of the ENet library<BR><B>Betreff:</B> Re: 
[ENet-discuss] ENET_EVENT_TYPE_DISCONNECT with peer address == 
0<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV>Hello,</DIV>
<DIV>&nbsp;</DIV>
<DIV>That's funny, I could swear that the address and port data were intact in 
my disconnect events... oh well. Anyways, it's recommended that you use 
peer-&gt;data (void pointer) to identify and distinguish your peers. 
Just&nbsp;point to&nbsp;some custom structure with your application data. </DIV>
<DIV>&nbsp;</DIV>
<DIV>Hope this helps,</DIV>
<DIV>- Paul<BR><BR>&nbsp;</DIV>
<DIV><SPAN class=gmail_quote>On 7/4/06, <B class=gmail_sendername>Intripoon</B> 
&lt;<A href="mailto:intripoon@gmx.de">intripoon@gmx.de</A>&gt; wrote:</SPAN> 
<BLOCKQUOTE class=gmail_quote 
style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><BR>Hi 
  !<BR><BR>I just started to use Enet. While evaluating enet for my needs, I 
  wondered<BR>about 
  this:<BR><BR><BR>"ENET_EVENT_TYPE_DISCONNECT&nbsp;&nbsp;&nbsp;&nbsp; a peer 
  has disconnected.<BR><BR>This event is generated on a successful completion of 
  a disconnect initiated<BR>by enet_pper_disconnect, if a peer has timed out, or 
  if a connection request <BR>intialized by enet_host_connect has timed out. The 
  peer field contains the<BR>peer which disconnected. "<BR><BR><BR>But if I get 
  a ENET_EVENT_TYPE_DISCONNECT, event.peer-&gt;address.host 
  and<BR>event.peer-&gt;address.port are 0. How am I supposed to recognize the 
  peer that<BR>disconnected? Directly comparing the event.peer pointer 
  instead?<BR><BR><BR>Best regards<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
  Marc<BR><BR>_______________________________________________<BR>ENet-discuss 
  mailing list <BR><A 
  href="mailto:ENet-discuss@cubik.org">ENet-discuss@cubik.org</A><BR><A 
  href="http://lists.cubik.org/mailman/listinfo/enet-discuss">http://lists.cubik.org/mailman/listinfo/enet-discuss</A><BR></BLOCKQUOTE></DIV><BR></BODY></HTML>