18-10-2009, Sunday-22:47:12
Damit kompilierts, obs den beabsichtigten Zweck erfüllt, kann ich nicht sagen.
Code:
Index: dataobj/network.cc
===================================================================
--- dataobj/network.cc (revision 2791)
+++ dataobj/network.cc (working copy)
@@ -204,7 +204,7 @@
if( FD_ISSET(my_socket, &fds) ) {
struct sockaddr_in client_name;
int size = sizeof(client_name);
- SOCKET s = accept(my_socket, (struct sockaddr *)&client_name, (int *)&size);
+ SOCKET s = accept(my_socket, (struct sockaddr *)&client_name, (socklen_t *)&size);
if( s!=INVALID_SOCKET ) {
dbg->message("check_activity()", "Accepted connection from: %s.\n", inet_ntoa(client_name.sin_addr) );
network_add_client(s);