mirror of
https://github.com/reactos/reactos.git
synced 2025-04-25 16:10:29 +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)
|
BOOL SendChar(SOCKET Sock, TCHAR c)
|
||||||
{
|
{
|
||||||
INT Temp;
|
INT RetVal;
|
||||||
INT SentBytes;
|
INT SentBytes;
|
||||||
|
|
||||||
SentBytes = 0;
|
SentBytes = 0;
|
||||||
Temp = send(Sock, &c, sizeof(TCHAR), 0);
|
RetVal = send(Sock, &c, sizeof(TCHAR), 0);
|
||||||
if (Temp > 0) {
|
if (RetVal > 0) {
|
||||||
SentBytes += Temp;
|
SentBytes += RetVal;
|
||||||
}
|
}
|
||||||
else if (Temp == SOCKET_ERROR) {
|
else if (RetVal == SOCKET_ERROR) {
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -4,7 +4,6 @@
|
||||||
#include "echo.h"
|
#include "echo.h"
|
||||||
#include "../skelserver/skelserver.h"
|
#include "../skelserver/skelserver.h"
|
||||||
|
|
||||||
// Handles the incoming data by reflecting it back to the sender.
|
|
||||||
DWORD WINAPI EchoHandler(VOID* Sock_)
|
DWORD WINAPI EchoHandler(VOID* Sock_)
|
||||||
{
|
{
|
||||||
DWORD Retval = 0;
|
DWORD Retval = 0;
|
||||||
|
@ -55,7 +54,7 @@ BOOL EchoIncomingPackets(SOCKET Sock)
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* Client closed connection before we could reply to
|
/* 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"));
|
_tprintf(_T("Peer unexpectedly dropped connection!\n"));
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue