<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="MSHTML 6.00.2900.3698" name=GENERATOR>
<STYLE>@font-face {
        font-family: 宋体;
}
@font-face {
        font-family: Verdana;
}
@font-face {
        font-family: @宋体;
}
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; layout-grid: 15.6pt; }
P.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
LI.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
DIV.MsoNormal {
        TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
        FONT-WEIGHT: normal; COLOR: windowtext; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none; mso-style-type: personal-compose
}
DIV.Section1 {
        page: Section1
}
UNKNOWN {
        FONT-SIZE: 10pt
}
BLOCKQUOTE {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; MARGIN-LEFT: 2em
}
OL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
UL {
        MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px
}
</STYLE>
</HEAD>
<BODY style="FONT-SIZE: 10pt; FONT-FAMILY: verdana">
<DIV><FONT face=Verdana color=#000080 size=2>uh...the data can be
everything.</FONT></DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#000080 size=2></FONT> </DIV>
<DIV><FONT face=Verdana color=#c0c0c0 size=2>2010-10-16 </FONT></DIV><FONT
face=Verdana color=#000080 size=2>
<HR style="WIDTH: 122px; HEIGHT: 2px" align=left SIZE=2>
</FONT>
<DIV><FONT face=Verdana color=#c0c0c0 size=2><SPAN>czj</SPAN> </FONT></DIV><FONT
face=Verdana color=#000080 size=2>
<HR>
</FONT>
<DIV><FONT face=Verdana size=2><STRONG>发件人:</STRONG> enet-discuss-request
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>发送时间:</STRONG> 2010-10-16 03:00:52
</FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>收件人:</STRONG> enet-discuss </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>抄送:</STRONG> </FONT></DIV>
<DIV><FONT face=Verdana size=2><STRONG>主题:</STRONG> ENet-discuss Digest, Vol 89,
Issue 6 </FONT></DIV>
<DIV><FONT face=Verdana size=2></FONT> </DIV>
<DIV><FONT face=Verdana size=2>
<DIV>Send ENet-discuss mailing list submissions to</DIV>
<DIV>enet-discuss@cubik.org</DIV>
<DIV></DIV>
<DIV>To subscribe or unsubscribe via the World Wide Web, visit</DIV>
<DIV>http://lists.cubik.org/mailman/listinfo/enet-discuss</DIV>
<DIV>or, via email, send a message with subject or body 'help' to</DIV>
<DIV>enet-discuss-request@cubik.org</DIV>
<DIV></DIV>
<DIV>You can reach the person managing the list at</DIV>
<DIV>enet-discuss-owner@cubik.org</DIV>
<DIV></DIV>
<DIV>When replying, please edit your Subject line so it is more specific</DIV>
<DIV>than "Re: Contents of ENet-discuss digest..."</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>Today's Topics:</DIV>
<DIV></DIV>
<DIV> 1. enet_host_connect and the data parameter. (fuzzy)</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>----------------------------------------------------------------------</DIV>
<DIV></DIV>
<DIV>Message: 1</DIV>
<DIV>Date: Fri, 15 Oct 2010 13:21:11 +0200</DIV>
<DIV>From: fuzzy <fuzzyspoon@gmail.com></DIV>
<DIV>To: enet-discuss@cubik.org</DIV>
<DIV>Subject: [ENet-discuss] enet_host_connect and the data parameter.</DIV>
<DIV>Message-ID: <4CB83927.9030809@gmail.com></DIV>
<DIV>Content-Type: text/plain; charset="iso-8859-1"; Format="flowed"</DIV>
<DIV></DIV>
<DIV> Is this parameter only for flags, not data?</DIV>
<DIV></DIV>
<DIV>For example, when sending packets around to my clients / server i use BSON.</DIV>
<DIV>This is simple when building a packet cos i can just do</DIV>
<DIV>*enet_packet_create((const void*)objectData , objectDataSize...*</DIV>
<DIV></DIV>
<DIV>But now, after just porting to 1.3.0 :</DIV>
<DIV>enet_host_connect </DIV>
<DIV><http://enet.bespin.org/group__host.html#g23b3ac206326b84f42fa91673f12fca9> </DIV>
<DIV>adds a *enet_uint32 data* parameter which says " user data supplied to </DIV>
<DIV>the receiving host ".</DIV>
<DIV></DIV>
<DIV>Maybe i am over tired, but this is for a bitmask/flags option... not </DIV>
<DIV>actual data right?</DIV>
<DIV></DIV>
<DIV>If i wanted to send the client nickname and client user ID across* on </DIV>
<DIV>connect request* - is that possible?</DIV>
<DIV>ENetPeer has a data pointer too, but the connect returns a peer so i </DIV>
<DIV>can't obviously set it in advance.</DIV>
<DIV></DIV>
<DIV>Thanks,</DIV>
<DIV>FuzzYspo0N</DIV>
<DIV>-------------- next part --------------</DIV>
<DIV>An HTML attachment was scrubbed...</DIV>
<DIV>URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20101015/88a2532d/attachment-0001.html></DIV>
<DIV></DIV>
<DIV>------------------------------</DIV>
<DIV></DIV>
<DIV>_______________________________________________</DIV>
<DIV>ENet-discuss mailing list</DIV>
<DIV>ENet-discuss@cubik.org</DIV>
<DIV>http://lists.cubik.org/mailman/listinfo/enet-discuss</DIV>
<DIV></DIV>
<DIV></DIV>
<DIV>End of ENet-discuss Digest, Vol 89, Issue 6</DIV>
<DIV>*******************************************</DIV></FONT></DIV></BODY></HTML>