#include <unistd.h>#include "../trucknet/trucknet.h"#include "../trucknet/unp.h"#include "../trucknet/TCPmsg.h"#include "../trucknet/msg.h"#include <string>Go to the source code of this file.
Defines | |
| #define | BUFLEN 10 |
Functions | |
| int | processNET (TCPmsg &m) |
| Recieve and process a message from the network. | |
| int | processSTDIN (TCPmsg &m) |
| Recieve and process a message from stdin. | |
| void | usage (void) |
| int | main (int argc, char *argv[]) |
Variables | |
| int | quit = 0 |
|
|
Definition at line 12 of file client.cpp. Referenced by main(). |
|
||||||||||||
|
Definition at line 26 of file client.cpp. References TCPmsg::getFD(), GUI_PORT, HOST_IP, m, processNET(), processSTDIN(), quit, and usage(). |
|
|
Recieve and process a message from the network.
Definition at line 81 of file client.cpp. References msg::dispatch(), TCPmsg::recv(), and msg::type(). Referenced by main(). |
|
|
Recieve and process a message from stdin.
Definition at line 108 of file client.cpp. References endmsg, quit, startmsg(), and usage(). Referenced by main(). |
|
|
Definition at line 20 of file client.cpp. Referenced by main(), and processSTDIN(). |
|
|
Definition at line 15 of file client.cpp. Referenced by main(), processSTDIN(), sighandler(), and stopAll(). |
1.4.4