@ -66,7 +66,7 @@ bool ConnectSocket(const CAddress& addrConnect, SOCKET& hSocketRet)
SOCKET hSocket = socket ( AF_INET , SOCK_STREAM , IPPROTO_TCP ) ;
SOCKET hSocket = socket ( AF_INET , SOCK_STREAM , IPPROTO_TCP ) ;
if ( hSocket = = INVALID_SOCKET )
if ( hSocket = = INVALID_SOCKET )
return false ;
return false ;
# if defined(__BSD__) || defined(__WXMAC_OSX__)
# ifdef BSD
int set = 1 ;
int set = 1 ;
setsockopt ( hSocket , SOL_SOCKET , SO_NOSIGPIPE , ( void * ) & set , sizeof ( int ) ) ;
setsockopt ( hSocket , SOL_SOCKET , SO_NOSIGPIPE , ( void * ) & set , sizeof ( int ) ) ;
# endif
# endif
@ -808,6 +808,7 @@ void ThreadSocketHandler2(void* parg)
unsigned int pnSeed [ ] =
unsigned int pnSeed [ ] =
{
{
// 2010/06
0x35218252 , 0x9c9c9618 , 0xda6bacad , 0xb9aca862 , 0x97c235c6 ,
0x35218252 , 0x9c9c9618 , 0xda6bacad , 0xb9aca862 , 0x97c235c6 ,
0x146f9562 , 0xb67b9e4b , 0x87cf4bc0 , 0xb83945d0 , 0x984333ad ,
0x146f9562 , 0xb67b9e4b , 0x87cf4bc0 , 0xb83945d0 , 0x984333ad ,
0xbbeec555 , 0x6f0eb440 , 0xe0005318 , 0x7797e460 , 0xddc60fcc ,
0xbbeec555 , 0x6f0eb440 , 0xe0005318 , 0x7797e460 , 0xddc60fcc ,
@ -818,6 +819,31 @@ unsigned int pnSeed[] =
0xdd3462d0 , 0x4e4d1448 , 0x171df645 , 0x84ee1155 ,
0xdd3462d0 , 0x4e4d1448 , 0x171df645 , 0x84ee1155 ,
0x248ac445 , 0x0e634444 , 0x0ded1b63 , 0x30c01e60 ,
0x248ac445 , 0x0e634444 , 0x0ded1b63 , 0x30c01e60 ,
0xa2b9a094 , 0x29e4fd43 , 0x9ce61b4c , 0xdae09744 ,
0xa2b9a094 , 0x29e4fd43 , 0x9ce61b4c , 0xdae09744 ,
// 2010/08
0x5ae6bf43 , 0x460be257 , 0x7245c0cf , 0x4e0f028d , 0x26501760 , 0x38643255 , 0x67094f4f , 0x480449b8 ,
0x16545143 , 0x1f082e5a , 0xaa428018 , 0xe411e793 , 0x14c1f862 , 0x2726105b , 0x9b33ea50 , 0xeeef86ca ,
0xe3210d44 , 0x0dca8b63 , 0x3f9dfb18 , 0x860340ad , 0xf33ba17a , 0x9018375c , 0x1de4e353 , 0x0fa52dcb ,
0x89c4555b , 0x109cf37b , 0x28c55b40 , 0x04c801ae , 0x275c1e80 , 0x6f7f745d , 0x7a2a5653 , 0xa28e26d8 ,
0xa4e65db2 , 0x99a06580 , 0xf253ba44 , 0x82cf6ab8 , 0x859c2e8e , 0xf71a815d , 0xc18f1454 , 0x71c8a943 ,
0x90d24e18 , 0x311789b2 , 0x74aba645 , 0xde0bbfc3 , 0xad724fad , 0xbf1ae15e , 0xbaa6fb54 , 0x06e4d145 ,
0x51528645 , 0x72120cd4 , 0xd4cfd145 , 0x0a7afed8 , 0x9b9a5fad , 0x9e9ff45e , 0x10128355 , 0xd44e8646 ,
0x04a07b47 , 0x5fc9d547 , 0xe0491e45 , 0xbac21b41 , 0x7aa31bae , 0x10483c5f , 0x94a23055 , 0x73d9dc47 ,
0x1a99c247 , 0x822fe847 , 0x7e57ba48 , 0xb19ea843 , 0xa60621b2 , 0x778cf163 , 0x125c6556 , 0xf94ba44f ,
0xa61a0948 , 0x6c839e4b , 0x29af5348 , 0x68d84845 , 0x752b95c3 , 0xcf0d4663 , 0x08e11e56 , 0x75109550 ,
0x5f24b94c , 0x42426d4d , 0xfbbc0a4c , 0x70a9a246 , 0xda7837cb , 0xae2a986d , 0xe283c358 , 0x0c7ca954 ,
0x8e9bde59 , 0x61521760 , 0x6884444c , 0xa194e548 , 0x9b8809cc , 0x16e96a8f , 0x956ff859 , 0xfad5e555 ,
0x0ea70c80 , 0x5b4ce26d , 0x7984444c , 0x1080d24a , 0x22a686cf , 0x6bf8c2ad , 0xb0f7485f , 0x06b66e56 ,
0x668373bc , 0x75506279 , 0x3868694e , 0x12a5954b , 0x3a8b62d1 , 0xb74fcbad , 0xa7dc3360 , 0xc070b359 ,
0xa2b87242 , 0xc45cab7c , 0x69882050 , 0x14a5464b , 0x386acad5 , 0x80b85db2 , 0x1f78a062 , 0xc608c55b ,
0x4257d543 , 0x7636ad80 , 0x4432d655 , 0xb2114d4b , 0x32639bd9 , 0xadd75db2 , 0x9be5a362 , 0x6831bc5e ,
0xf7f77046 , 0x8f35ba81 , 0x09bb4e59 , 0xd0fb6b4e , 0xc5daa445 , 0x9c611618 , 0x355dcc62 , 0xf2cf435e ,
0x31e72c46 , 0xdd8a43ad , 0x171f9c5b , 0xb4c2e355 , 0xbe8af945 , 0x613d3942 , 0xe6f9e863 , 0x7a3d855f ,
0xa66adc47 , 0x261089b2 , 0x5a27105b , 0x6c28105b , 0xdd247946 , 0xe6c3a445 , 0x43a1ec63 , 0x99b4dd5f ,
0xb6834347 , 0x5e9649bc , 0xf9dd545d , 0x6ae4c15b , 0xa5318a47 , 0x7984ec47 , 0x93a73b63 , 0x0c60195f ,
0xa5c85e4b , 0xa0a36dc2 , 0x0739a95e , 0x3d44c15b , 0xfb940f4b , 0xd67c9148 , 0x614f9876 , 0x0a241c5f ,
0xad9da74c , 0x4459abc8 , 0x12e71b5f , 0x1c534a5d , 0x8ff5fc50 , 0x2ca8864b , 0xd894fd80 , 0x82ab3160 ,
0x390d804e , 0x2cf310cc , 0x680dad80 , 0x691be15e , 0x5a8f4652 , 0xaad0784d , 0x0d2431ad ,
} ;
} ;
@ -1179,7 +1205,7 @@ bool BindListenPort(string& strError)
return false ;
return false ;
}
}
# if defined(__BSD__) || defined(__WXMAC_OSX__)
# ifdef BSD
// Different way of disabling SIGPIPE on BSD
// Different way of disabling SIGPIPE on BSD
setsockopt ( hListenSocket , SOL_SOCKET , SO_NOSIGPIPE , ( void * ) & nOne , sizeof ( int ) ) ;
setsockopt ( hListenSocket , SOL_SOCKET , SO_NOSIGPIPE , ( void * ) & nOne , sizeof ( int ) ) ;
# endif
# endif