documentation for class TCPSocket, TCPClient and TCPServer added.

This commit is contained in:
Roland Jax
2014-11-18 15:38:36 +01:00
parent 48fcf39d53
commit 1415b143af
5 changed files with 89 additions and 8 deletions
+2 -3
View File
@@ -41,7 +41,7 @@ void define_args()
A.addText(" 'help' show server commands\n\n"
" 'feed' sends a dump file to a local serial device (pts)\n"
" (hint: socat -d -d pty,raw,echo=0 pty,raw,echo=0)\n\n"
" Options:\n");
"Options:\n");
A.addOption("device", "d", OptVal("/dev/ttyUSB60"), dt_string, ot_mandatory,
"virtual serial device (/dev/ttyUSB60)");
@@ -124,10 +124,9 @@ int main(int argc, char* argv[])
delete socket;
}
else {
else
std::cout << "error connecting to " << A.getOptVal<const char*>("server")
<< ":" << A.getOptVal<int>("port") << std::endl;
}
delete client;
}