diff options
author | eihrul <eihrul> | 2004-11-23 21:16:51 +0000 |
---|---|---|
committer | eihrul <eihrul> | 2004-11-23 21:16:51 +0000 |
commit | 99357908008f28ee09d307191c1f8ec2b65d6e82 (patch) | |
tree | 9e9beca1f74fe153afcde7dd7d782ba8561072c3 /docs | |
parent | 49414930c5f85a0d11f2325108c0bb4f0b838ded (diff) | |
download | enet-99357908008f28ee09d307191c1f8ec2b65d6e82.tar.gz enet-99357908008f28ee09d307191c1f8ec2b65d6e82.zip |
some tutorial cleanups
Diffstat (limited to 'docs')
-rwxr-xr-x | docs/tutorial.dox | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/tutorial.dox b/docs/tutorial.dox index 806ca9a..0cf29fd 100755 --- a/docs/tutorial.dox +++ b/docs/tutorial.dox @@ -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); ... ... ... |