Fixed IConnection and Connection

This commit is contained in:
Sam Mario Svensson 2013-11-19 12:41:58 +01:00
parent 56c32fcbc3
commit 89ce3dd0d1
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
};