Skip to content
Snippets Groups Projects
Commit 8ead31f3 authored by ajf5's avatar ajf5
Browse files

logging

parent 5e9e6426
No related branches found
No related tags found
No related merge requests found
......@@ -242,6 +242,7 @@ int TcpSocket::messageHandler(int sockfd, string payloadMessage, string returnIP
sdfsfilename = fields[0]; //exec file name
start = stoi(fields[2]); //start line (used just for signalling what work finished to master)
remoteLocalname = fields[1]; //actual file (used for signalling)
cout << "exec: " << sdfsfilename << ", actual: " << remoteLocalname << ", start: " << fields[2] << ", temp: " << fields[3] << endl;
}
fp = fopen(localfilename.c_str(), mode.c_str());
if (fp == NULL) {
......@@ -259,7 +260,7 @@ int TcpSocket::messageHandler(int sockfd, string payloadMessage, string returnIP
}
bzero(buf, sizeof(buf));
}
cout << "we have all the file, finishing this connections" << endl;
cout << "we have " << to_string(byteReceived) << " bytes from this connection" << endl;
fclose(fp);
FileObject f(localfilename);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment