Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 424341 | Differences between
and this patch

Collapse All | Expand All

(-)enigma-1.20.orig/src/client.cc (-1 / +2 lines)
Lines 144-149 Link Here
144
144
145
    m_network_host = enet_host_create (NULL,
145
    m_network_host = enet_host_create (NULL,
146
                                       1 /* only allow 1 outgoing connection */,
146
                                       1 /* only allow 1 outgoing connection */,
147
                                       2 /* 2 channels are sufficient */,
147
                                       57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */,
148
                                       57600 / 8 /* 56K modem with 56 Kbps downstream bandwidth */,
148
                                       14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */);
149
                                       14400 / 8 /* 56K modem with 14 Kbps upstream bandwidth */);
149
150
Lines 164-170 Link Here
164
    sv_address.port = 12345;
165
    sv_address.port = 12345;
165
166
166
    /* Initiate the connection, allocating the two channels 0 and 1. */
167
    /* Initiate the connection, allocating the two channels 0 and 1. */
167
    m_server = enet_host_connect (m_network_host, &sv_address, 2);
168
    m_server = enet_host_connect (m_network_host, &sv_address, 2, 57600);
168
169
169
    if (m_server == NULL) {
170
    if (m_server == NULL) {
170
       fprintf (stderr,
171
       fprintf (stderr,
(-)enigma-1.20.orig/src/netgame.cc (-2 / +3 lines)
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, 0, 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 /* 2 channels are sufficient */,
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, 57600);
264
    
265
    
265
    if (m_server == NULL) {
266
    if (m_server == NULL) {
266
        fprintf (stderr, 
267
        fprintf (stderr, 

Return to bug 424341