This commit is contained in:
Carl-Benedikt Krüger 2011-08-03 13:52:15 +02:00
parent 15d479862f
commit c121c38912

View file

@ -9,8 +9,8 @@ int cli_sendBuffer(Client* cli,void* pBuffer, unsigned int bufferlen)
int iResult;
ClientEventArgs e;
//abfragen ob client existiert!! wichtig
if (cli->sSocket != SOCKET_ERROR)
{
// if (cli->sSocket != SOCKET_ERROR)
// {
iResult= send(cli->sSocket,(char*)pBuffer,bufferlen,0);
if (cli->_OnWrite != 0)
{
@ -19,9 +19,9 @@ int cli_sendBuffer(Client* cli,void* pBuffer, unsigned int bufferlen)
cli->_OnWrite(&e);
}
return iResult;
}
else
return -3;
// }
// else
// return -3;
}
int cli_ConnectTo(Client* cli,char * pAdresse,unsigned short Port,int webAdresse)