Changeset 151


Ignore:
Timestamp:
Jul 1, 2008, 6:22:32 PM (15 years ago)
Author:
holiday
Message:

localhost net testing enabled by setting client listen port to udp/20204 (main_net_cfg->port+2 instead of +1)

Location:
abuse/trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/innet.cpp

    r129 r151  
    382382    dprintf("Joining game in progress, hang on....\n");
    383383
    384     game_sock=prot->create_listen_socket(main_net_cfg->port+1,net_socket::SOCKET_FAST);     // this is used for fast game packet transmission
     384    game_sock=prot->create_listen_socket(main_net_cfg->port+2,net_socket::SOCKET_FAST);     // this is used for fast game packet transmission
    385385    if (!game_sock) { if (comm_sock) delete comm_sock; comm_sock=NULL; prot=NULL; return 0; }
    386386    game_sock->read_selectable();
     
    394394
    395395    uint8_t ctype=CLIENT_ABUSE;
    396     uint16_t port=lstl(main_net_cfg->port+1),cnum;
     396    uint16_t port=lstl(main_net_cfg->port+2),cnum;
    397397
    398398    uint8_t reg;
  • abuse/trunk/src/net/netdrv.cpp

    r124 r151  
    273273    if (out->write(&cmd,1)!=1) { mdie("could not write block ack1"); }  // send something to unblock engine
    274274      } break;
     275     
    275276      case NFCMD_KILL_SLACKERS :
    276277      {
     
    288289    if (in->read(&cmd,1)!=1) { mdie("could not read send ack2"); }    // read something to block ourselves for engine
    289290      } break;
    290 
    291291
    292292      case NFCMD_REQUEST_ENTRY :
     
    299299    if (out->write(&success,2)!=2) mdie("cound not send lsf read failure");
    300300      } break;
     301     
    301302      case NFCMD_BECOME_SERVER :
    302303      {
     
    304305    if (out->write(&cmd,1)!=1) mdie("cound not send ok");
    305306      } break;
     307     
    306308      case NFCMD_REQUEST_LSF :
    307309      {
     
    450452  strcpy(sn_start,server_name);
    451453
    452   net_socket *sock=connect_to_server(server_name,DEFAULT_COMM_PORT,0);
     454  net_socket *sock=connect_to_server(server_name, DEFAULT_COMM_PORT, 0);
    453455  if (!sock)
    454456  {
Note: See TracChangeset for help on using the changeset viewer.