Changeset 474

Show
Ignore:
Timestamp:
09/06/07 21:38:26 (13 months ago)
Author:
krobillard
Message:

Calling WSAStartup/WSACleanup on Windows.

Location:
trunk/thune
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/urlan.c

    r472 r474  
    574574 
    575575#ifdef UR_CONFIG_NET 
     576#ifdef _WIN32 
     577    { 
     578    WORD wsver; 
     579    WSADATA wsdata; 
     580    wsver = MAKEWORD( 2, 2 ); 
     581    WSAStartup( wsver, &wsdata ); 
     582    } 
     583#endif 
    576584    ur_registerPortDevice( env, "socket", &_netPortDevice, "fd addr" ); 
    577585#endif 
     
    754762    } 
    755763 
     764#ifdef UR_CONFIG_NET 
     765#ifdef _WIN32 
     766    WSACleanup(); 
     767#endif 
     768#endif 
     769 
    756770#ifdef GLOBAL_STORE 
    757771    _freeResources( env, &env->resources.arr ); 
  • trunk/thune/wait.c

    r473 r474  
    152152    if( n == SOCKET_ERROR ) 
    153153    { 
    154         ur_throwErr( UR_ERR_INTERNAL, "select - %x\n", WSAGetLastError() ); 
     154        ur_throwErr( UR_ERR_INTERNAL, "select - %d\n", WSAGetLastError() ); 
    155155    } 
    156156#else