aboutsummaryrefslogtreecommitdiffhomepage
path: root/docs/tutorial.dox
diff options
context:
space:
mode:
Diffstat (limited to 'docs/tutorial.dox')
-rwxr-xr-xdocs/tutorial.dox4
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/tutorial.dox b/docs/tutorial.dox
index 62e615f..dd911d3 100755
--- a/docs/tutorial.dox
+++ b/docs/tutorial.dox
@@ -73,6 +73,7 @@ and the resources used by the host will be freed.
server = enet_host_create (& address /* the address to bind the server host to */,
32 /* allow up to 32 clients and/or outgoing connections */,
+ 2 /* allow up to 2 channels to be used, 0 and 1 */,
0 /* assume any amount of incoming bandwidth */,
0 /* assume any amount of outgoing bandwidth */);
if (server == NULL)
@@ -100,6 +101,7 @@ may be simultaneously open.
client = enet_host_create (NULL /* create a client host */,
1 /* only allow 1 outgoing connection */,
+ 2 /* allow up 2 channels to be used, 0 and 1 */,
57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */,
14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */);
@@ -321,7 +323,7 @@ ENET_EVENT_TYPE_DISCONNECT will be generated.
address.port = 1234;
/* Initiate the connection, allocating the two channels 0 and 1. */
- peer = enet_host_connect (client, & address, 2);
+ peer = enet_host_connect (client, & address, 2, 0);
if (peer == NULL)
{