Fixed IConnection and Connection
This commit is contained in:
parent
56c32fcbc3
commit
89ce3dd0d1
|
@ -106,7 +106,7 @@ bool Connection::Send(int socket , const char message[])
|
|||
int nBytes;
|
||||
unsigned long messageSize = strlen(message);
|
||||
|
||||
if((nBytes = send(socket, message , messageSize)) == SOCKET_ERROR)
|
||||
if((nBytes = send(socket, message , messageSize, 0)) == SOCKET_ERROR)
|
||||
{
|
||||
//Send failed!
|
||||
return false;
|
||||
|
|
|
@ -14,7 +14,7 @@ class IConnection
|
|||
virtual bool Connect( unsigned short port, const char serverName[] ) = 0;
|
||||
virtual bool InitiateServer( unsigned short port ) = 0;
|
||||
virtual void Disconnect() = 0;
|
||||
virtual bool Send(int socket , const char message[]); = 0;
|
||||
virtual bool Send(int socket , const char message[]) = 0;
|
||||
virtual int Recieve( int socket ) = 0;
|
||||
virtual int Listen() = 0;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue