Fixed a namespace collision that was causing compile errors in VS2010. bind() was being interpreted as std::bind(), not the winsock bind() call.
This commit is contained in:
@@ -153,7 +153,7 @@ JSocket::JSocket()
|
||||
Adresse_Socket_Connection.sin_family=AF_INET;
|
||||
Adresse_Socket_Connection.sin_port=htons(SERVER_PORT);
|
||||
|
||||
result=bind(mfd,
|
||||
result=::bind(mfd,
|
||||
(struct sockaddr*)&Adresse_Socket_Connection,
|
||||
sizeof(Adresse_Socket_Connection));
|
||||
if(result!=0){
|
||||
|
||||
Reference in New Issue
Block a user