no message
git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@375 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/** @mainpage enet
|
||||
<center>http://enet.cubik.org</center>
|
||||
<center>http://enet.bespin.org</center>
|
||||
<hr>
|
||||
|
||||
ENet's purpose is to provide a relatively thin, simple and robust
|
||||
@@ -36,18 +36,18 @@ or dependent tasks.
|
||||
You can retrieve the source to ENet by downloading it in either .zip
|
||||
form, .tar.gz form, or accessing the cvs distribution directly.
|
||||
|
||||
The most recent CVS can be downloaded <a href="http://enet.cubik.org/download/enet.tar.gz">here</a>
|
||||
The most recent CVS can be downloaded <a href="http://enet.bespin.org/download/enet.tar.gz">here</a>
|
||||
|
||||
To access ENet via anonymous CVS, you must use the CVSROOT
|
||||
:pserver:anoncvs\@sferik.cubik.org:/home/enet/cvsroot with an empty
|
||||
:pserver:anonymous\@bespin.org:/var/lib/cvs/enet with an empty
|
||||
password.
|
||||
|
||||
@code
|
||||
$ cvs -z3 -d :pserver:anon[email protected]:/home/enet/cvsroot login
|
||||
$ cvs -z3 -d :pserver:anon[email protected]:/var/lib/cvs/enet login
|
||||
@endcode
|
||||
Hit the return key when prompted for a password.
|
||||
@code
|
||||
$ cvs -z3 -d :pserver:anon[email protected]:/home/enet/cvsroot co -l .
|
||||
$ cvs -z3 -d :pserver:anon[email protected]:/var/lib/cvs/enet co -l .
|
||||
$ cvs -z3 co enet
|
||||
@endcode
|
||||
|
||||
|
||||
@@ -233,10 +233,10 @@ dispatching any events.
|
||||
enet_packet_resize (packet, strlen ("packetfoo") + 1);
|
||||
strcpy (& packet -> data [strlen ("packet")], "foo");
|
||||
|
||||
/* Send the packet to the peer over channel id 3. */
|
||||
/* Send the packet to the peer over channel id 0. */
|
||||
/* One could also broadcast the packet by */
|
||||
/* enet_host_broadcast (host, 3, packet); */
|
||||
enet_peer_send (peer, 3, packet);
|
||||
/* enet_host_broadcast (host, 0, packet); */
|
||||
enet_peer_send (peer, 0, packet);
|
||||
...
|
||||
...
|
||||
...
|
||||
@@ -262,7 +262,7 @@ foreign host. No event is generated.
|
||||
@code
|
||||
ENetEvent event;
|
||||
|
||||
enet_peer_disconnect (& client -> peers [0]);
|
||||
enet_peer_disconnect (peer);
|
||||
|
||||
/* Allow up to 3 seconds for the disconnect to succeed
|
||||
* and drop any packets received packets.
|
||||
@@ -286,7 +286,7 @@ foreign host. No event is generated.
|
||||
|
||||
/* We've arrived here, so the disconnect attempt didn't */
|
||||
/* succeed yet. Force the connection down. */
|
||||
enet_peer_reset (& client -> peers [0]);
|
||||
enet_peer_reset (peer);
|
||||
...
|
||||
...
|
||||
...
|
||||
|
||||
Reference in New Issue
Block a user