[ENet-discuss] [***SPAM***] Send client list to all clients

Ng Yao Kheng ngyaokheng at hotmail.com
Tue Jun 3 01:49:07 PDT 2008


In Enet, how is bandwidth management done? 
 
If not present, how is bandwidth management done for a game program? 
 
Thanks a lot for your advise.> Date: Tue, 27 May 2008 08:51:08 -0700> From: lsalzman1 at cox.net> To: enet-discuss at cubik.org> Subject: Re: [ENet-discuss] [***SPAM***] Send client list to all clients> > An enet packet is simply a piece of malloc'd memory. You can stuff in> whatever data you want into it. The peer -> data field is not networked> in any way, it is simply for your own internal usage.> > Lee> > Ng Yao Kheng wrote:> >> > Hi Williams,> >> > As I am quite new to network programming, can you give me a hint of> > how to achieve this? The ip address and the port number are integer> > and data in enet which is packet is string if I am not wrong......how> > can I send a series of ip address and port number to the client and> > then later interpret by the client correctly.....> >> >> > I had another problem:> > >From client, I want to send to server a packet by following> >> > At client side,> >> > peer->data = "SERVER2";> > int temp = enet_peer_send (peer, 0, packet);> > if(temp == 0)> > printf("Send Successful %s\n", peer->data);> >> >> > At server side,> >> > case ENET_EVENT_TYPE_RECEIVE:> >> > printf ("A packet of length %u containing %s was received from %s on> > channel %u.\n",> > event.packet -> dataLength,> > event.packet -> data,> > event.peer -> data,> > event.channelID);> >> > the data in event.peer->data is null,....I receive the data but why I> > did not receive the string "SERVER" in event.peer->data????> >> > Please advise, thanks a lot> >> > Regards,> >> >> >> > ------------------------------------------------------------------------> > From: stevewilliams at kromestudios.com> > To: enet-discuss at cubik.org> > Date: Tue, 27 May 2008 14:08:17 +1000> > Subject: Re: [ENet-discuss] [***SPAM***] Send client list to all> > clients> >> > There is no in-built method in enet to do that. In your code you> > would create a packet that contains the list of clients, and when> > a client connects to the host, the host would build the packet> > from its own list of clients and send that packet to the new client.> >> > Steve 'Sly' Williams> >> > Lead Programmer> >> > Krome Studios> >> > *From:* enet-discuss-bounces at cubik.org> > [mailto:enet-discuss-bounces at cubik.org] *On Behalf Of *Ng Yao Kheng> > *Sent:* Tuesday, 27 May 2008 1:57 PM> > *To:* enet-discuss at cubik.org> > *Subject:* [***SPAM***] [ENet-discuss] Send client list to all clients> >> > Hi all,> >> > I am not sure if the mailing list is still active as my previous> > two mail were never answered.> >> > I have a question now and hope to receive an answer as my project> > is very urgent.> >> > Using enet, a client connect to server. When another client> > connect to the server, the server will have a list of 2 clients> > connected. Can I know of any idea how to replicate the client list> > to the client so that client can display a list of connected clients?> >> > Really appreaciate any reply. Thanks.....> >> > Best Regards,> >> > ------------------------------------------------------------------------> >> > Always-on security tools provide safer ways to connect and share> > anywhere. Find out more. Windows Live> > <http://get.live.com/familysafety/overview>> >> >> > ------------------------------------------------------------------------> >> >> >> > This message and its attachments may contain legally privileged or> > confidential information. This message is intended for the use of> > the individual or entity to which it is addressed. If you are not> > the addressee indicated in this message, or the employee or agent> > responsible for delivering the message to the intended recipient,> > you may not copy or deliver this message or its attachments to> > anyone. Rather, you should permanently delete this message and its> > attachments and kindly notify the sender by reply e-mail. Any> > content of this message and its attachments, which does not relate> > to the official business of the sending company must be taken not> > to have been sent or endorsed by the sending company or any of its> > related entities. No warranty is made that the e-mail or> > attachment(s) are free from computer virus or other defect.> >> >> > ------------------------------------------------------------------------> > Make the most of what you can do on your PC and the Web, just the w!> > ay you want. Windows Live <http://www.get.live.com/wl/all>> > ------------------------------------------------------------------------> >> > _______________________________________________> > ENet-discuss mailing list> > ENet-discuss at cubik.org> > http://lists.cubik.org/mailman/listinfo/enet-discuss> > > > _______________________________________________> ENet-discuss mailing list> ENet-discuss at cubik.org> http://lists.cubik.org/mailman/listinfo/enet-discuss
_________________________________________________________________
Check out Barclays Premier League exclusive video clips here!
http://fc.sg.msn.com/index.aspx
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.cubik.org/pipermail/enet-discuss/attachments/20080603/6838ba98/attachment.htm>


More information about the ENet-discuss mailing list