Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

client/client.cpp File Reference

#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


Define Documentation

#define BUFLEN   10
 

Definition at line 12 of file client.cpp.

Referenced by main().


Function Documentation

int main int  argc,
char *  argv[]
 

Definition at line 26 of file client.cpp.

References TCPmsg::getFD(), GUI_PORT, HOST_IP, m, processNET(), processSTDIN(), quit, and usage().

int processNET TCPmsg m  ) 
 

Recieve and process a message from the network.

Parameters:
m a TCPmsg Class that has recieved a NET message.
Returns:
0 on success and exits on failure.
Author:
<author name>="">

Definition at line 81 of file client.cpp.

References msg::dispatch(), TCPmsg::recv(), and msg::type().

Referenced by main().

int processSTDIN TCPmsg m  ) 
 

Recieve and process a message from stdin.

Parameters:
m a TCPmsg class that has recieved a STDIN msg.
Returns:
<information on="" what="" is="" being="" returned>="">
Author:
<author name>="">

Definition at line 108 of file client.cpp.

References endmsg, quit, startmsg(), and usage().

Referenced by main().

void usage void   ) 
 

Definition at line 20 of file client.cpp.

Referenced by main(), and processSTDIN().


Variable Documentation

int quit = 0
 

Definition at line 15 of file client.cpp.

Referenced by main(), processSTDIN(), sighandler(), and stopAll().


Generated on Fri Sep 1 14:25:54 2006 for Raptor by  doxygen 1.4.4