- 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:
Ged Murphy 2005-09-27 23:37:05 +00:00
parent 89effd5ee8
commit 5d41a8d313
8 changed files with 391 additions and 392 deletions

View file

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

View file

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