Definition at line 19 of file netManager.h.
Public Types | |
| enum | sock_port { df_in_port = 1000, df_out_port = 1001 } |
| enumeration for the ports used by the netmanager More... | |
Public Member Functions | |
| int | connect () |
| will attempt to make a default connection to the via board | |
| int | connect (struct sockaddr_in) |
| will attempt to make a connection based on the user input | |
| int | disconnect () |
| attempts to close the network connection with the via board | |
| int | writePacket (Packet *packet) |
| gets a packet ready to send over the network | |
| int | login () |
| the method which will prompt the user to login | |
| int | waitForReply (int ID, Packet *packet) |
| will wait a max of two seconds for a reply from the server on success will populate the packet | |
| int | createID () |
| create an id for a packet | |
Static Public Member Functions | |
| NetManager * | theInstance () |
| returns the one and only instance of ViaNetManager | |
Protected Member Functions | |
| NetManager () | |
| constructor for the ViaNetManager class | |
| ~NetManager () | |
| destructor for the ViaNetManager class | |
Private Attributes | |
| ScreenManager * | screenManager |
| reference to the screenManager | |
| SysLog * | systemLogger |
| reference to the syslog | |
| InNetSock * | inNetSock |
| refernce to the InNetSock | |
| OutNetSock * | outNetSock |
| reference to the OutNetSock | |
| sockaddr_in | defaultOutNet |
| information for making a default out connection to the the robot | |
| sockaddr_in | defaultInNet |
| information for making a default in connection to the robot | |
| sockaddr_in | usrNet |
| information provided by the user to make a non default connection | |
| int | curID |
| the current id | |
Static Private Attributes | |
| char * | df_addr |
| the default ip address for connecting to the robot | |
| NetManager * | nm |
| the instance of netmanager | |
|
|
enumeration for the ports used by the netmanager
Definition at line 25 of file netManager.h. |
|
|
will attempt to make a connection based on the user input
|
|
|
will attempt to make a default connection to the via board
|
|
|
create an id for a packet
|
|
|
attempts to close the network connection with the via board
|
|
|
the method which will prompt the user to login
|
|
|
returns the one and only instance of ViaNetManager
|
|
||||||||||||
|
will wait a max of two seconds for a reply from the server on success will populate the packet
|
|
|
gets a packet ready to send over the network
|
1.3.6