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