|
@@ -2,6 +2,7 @@
|
|
|
#ifndef WIN32
|
|
|
#include <iostream>
|
|
|
#include <netdb.h>
|
|
|
+#include <signal.h>
|
|
|
#endif
|
|
|
#include <openssl/err.h>
|
|
|
#include <openssl/ssl.h>
|
|
@@ -16,11 +17,11 @@ void Network::Start( int maxClients )
|
|
|
int fehler = WSAStartup( MAKEWORD( 2, 0 ), &lpwd );
|
|
|
if( fehler != 0 )
|
|
|
MessageBox( 0, "Win Sock 2.0 konnte nocht gestartet werden.", "Fehler", MB_ICONERROR );
|
|
|
+#else
|
|
|
+ signal( SIGPIPE, SIG_IGN );
|
|
|
#endif
|
|
|
SSL_library_init();
|
|
|
SSL_load_error_strings();
|
|
|
- ERR_load_BIO_strings();
|
|
|
- OpenSSL_add_all_algorithms();
|
|
|
}
|
|
|
|
|
|
void Network::getHostName( char *name, int bufferLen )
|