Lines 155-161
Link Here
|
155 |
network_address.host = ENET_HOST_ANY; |
155 |
network_address.host = ENET_HOST_ANY; |
156 |
network_address.port = 12345; |
156 |
network_address.port = 12345; |
157 |
|
157 |
|
158 |
network_host = enet_host_create (&network_address, 1, 0, 0); |
158 |
network_host = enet_host_create (&network_address, 1, 2, 0, 0); |
159 |
if (network_host == NULL) { |
159 |
if (network_host == NULL) { |
160 |
fprintf (stderr, |
160 |
fprintf (stderr, |
161 |
"SV: An error occurred while trying to create an ENet server host.\n"); |
161 |
"SV: An error occurred while trying to create an ENet server host.\n"); |
Lines 240-245
Link Here
|
240 |
ENetHost *m_network_host; |
240 |
ENetHost *m_network_host; |
241 |
m_network_host = enet_host_create (NULL, |
241 |
m_network_host = enet_host_create (NULL, |
242 |
1 /* only allow 1 outgoing connection */, |
242 |
1 /* only allow 1 outgoing connection */, |
|
|
243 |
2, |
243 |
57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */, |
244 |
57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */, |
244 |
14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */); |
245 |
14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */); |
245 |
|
246 |
|
Lines 260-266
Link Here
|
260 |
|
261 |
|
261 |
/* Initiate the connection, allocating the two channels 0 and 1. */ |
262 |
/* Initiate the connection, allocating the two channels 0 and 1. */ |
262 |
int numchannels = 2; |
263 |
int numchannels = 2; |
263 |
m_server = enet_host_connect (m_network_host, &sv_address, numchannels); |
264 |
m_server = enet_host_connect (m_network_host, &sv_address, numchannels, 0); |
264 |
|
265 |
|
265 |
if (m_server == NULL) { |
266 |
if (m_server == NULL) { |
266 |
fprintf (stderr, |
267 |
fprintf (stderr, |