No, actually it can't. But after talking with Lee on IRC it seems a bad approach either way, and the best approach is to send connect, and on client _CONNECT event, send the information in a packet (not a connect command).
Thanks for the reply anyway :) On 2010/10/16 02:52 AM, czj wrote: > uh...the data can be everything. > 2010-10-16 > ------------------------------------------------------------------------ > czj > ------------------------------------------------------------------------ > *发件人:* enet-discuss-request > *发送时间:* 2010-10-16 03:00:52 > *收件人:* enet-discuss > *抄送:* > *主题:* ENet-discuss Digest, Vol 89, Issue 6 > Send ENet-discuss mailing list submissions to > [email protected] > To subscribe or unsubscribe via the World Wide Web, visit > http://lists.cubik.org/mailman/listinfo/enet-discuss > or, via email, send a message with subject or body 'help' to > [email protected] > You can reach the person managing the list at > [email protected] > When replying, please edit your Subject line so it is more specific > than "Re: Contents of ENet-discuss digest..." > Today's Topics: > 1. enet_host_connect and the data parameter. (fuzzy) > ---------------------------------------------------------------------- > Message: 1 > Date: Fri, 15 Oct 2010 13:21:11 +0200 > From: fuzzy <[email protected]> > To: [email protected] > Subject: [ENet-discuss] enet_host_connect and the data parameter. > Message-ID: <[email protected]> > Content-Type: text/plain; charset="iso-8859-1"; Format="flowed" > Is this parameter only for flags, not data? > For example, when sending packets around to my clients / server i use > BSON. > This is simple when building a packet cos i can just do > *enet_packet_create((const void*)objectData , objectDataSize...* > But now, after just porting to 1.3.0 : > enet_host_connect > <http://enet.bespin.org/group__host.html#g23b3ac206326b84f42fa91673f12fca9> > > adds a *enet_uint32 data* parameter which says " user data supplied to > the receiving host ". > Maybe i am over tired, but this is for a bitmask/flags option... not > actual data right? > If i wanted to send the client nickname and client user ID across* on > connect request* - is that possible? > ENetPeer has a data pointer too, but the connect returns a peer so i > can't obviously set it in advance. > Thanks, > FuzzYspo0N > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > <http://lists.cubik.org/pipermail/enet-discuss/attachments/20101015/88a2532d/attachment-0001.html> > ------------------------------ > _______________________________________________ > ENet-discuss mailing list > [email protected] > http://lists.cubik.org/mailman/listinfo/enet-discuss > End of ENet-discuss Digest, Vol 89, Issue 6 > ******************************************* > > > _______________________________________________ > ENet-discuss mailing list > [email protected] > http://lists.cubik.org/mailman/listinfo/enet-discuss
_______________________________________________ ENet-discuss mailing list [email protected] http://lists.cubik.org/mailman/listinfo/enet-discuss
