forked from scott/threaded_network_chat
spacing
This commit is contained in:
@@ -49,9 +49,11 @@ pollForSever(void *args)
|
||||
}*/
|
||||
// cout << "Server: " << msg << endl;
|
||||
// printf("Server: %s\n");
|
||||
|
||||
writeToFile(logFileName, msg);
|
||||
if (linesInFile(logFileName) > LOG_LENGTH)
|
||||
linePos++;
|
||||
|
||||
displayFile(logFileName, linePos, LOG_LENGTH);
|
||||
}
|
||||
}
|
||||
@@ -77,8 +79,10 @@ setupClient()
|
||||
// try to connect...
|
||||
int status =
|
||||
connect(clientSocketDescriptor, (sockaddr *)&sendSockAddr, sizeof(sendSockAddr));
|
||||
|
||||
if (status < 0)
|
||||
writeToFile(logFileName, "Error connecting to socket!");
|
||||
|
||||
writeToFile(logFileName, "Connected to the server!");
|
||||
int bytesRead, bytesWritten = 0;
|
||||
struct timeval start1, end1;
|
||||
|
||||
Reference in New Issue
Block a user