...
This commit is contained in:
parent
15d479862f
commit
c121c38912
1 changed files with 5 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue