mirror of
https://github.com/reactos/reactos.git
synced 2025-04-24 23:50:24 +00:00
- Set svn:eol-style to native
- Set svn:ignore on directories Thanks to w3seek for pointing this out. svn path=/trunk/; revision=18132
This commit is contained in:
parent
89effd5ee8
commit
5d41a8d313
8 changed files with 391 additions and 392 deletions
|
@ -75,15 +75,15 @@ BOOL GenerateChars(SOCKET Sock)
|
|||
|
||||
BOOL SendChar(SOCKET Sock, TCHAR c)
|
||||
{
|
||||
INT Temp;
|
||||
INT RetVal;
|
||||
INT SentBytes;
|
||||
|
||||
SentBytes = 0;
|
||||
Temp = send(Sock, &c, sizeof(TCHAR), 0);
|
||||
if (Temp > 0) {
|
||||
SentBytes += Temp;
|
||||
RetVal = send(Sock, &c, sizeof(TCHAR), 0);
|
||||
if (RetVal > 0) {
|
||||
SentBytes += RetVal;
|
||||
}
|
||||
else if (Temp == SOCKET_ERROR) {
|
||||
else if (RetVal == SOCKET_ERROR) {
|
||||
return FALSE;
|
||||
}
|
||||
else
|
||||
|
|
|
@ -4,7 +4,6 @@
|
|||
#include "echo.h"
|
||||
#include "../skelserver/skelserver.h"
|
||||
|
||||
// Handles the incoming data by reflecting it back to the sender.
|
||||
DWORD WINAPI EchoHandler(VOID* Sock_)
|
||||
{
|
||||
DWORD Retval = 0;
|
||||
|
@ -55,7 +54,7 @@ BOOL EchoIncomingPackets(SOCKET Sock)
|
|||
}
|
||||
else {
|
||||
/* Client closed connection before we could reply to
|
||||
// all the data it sent, so quit early. */
|
||||
all the data it sent, so quit early. */
|
||||
_tprintf(_T("Peer unexpectedly dropped connection!\n"));
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue