Definition at line 14 of file LoginPacket.h.
Public Types | |
| enum | { USERNAME = 21, PASSWORD = 21, MESSAGELEN = USERNAME + PASSWORD, TOTLEN = MESSAGELEN + IDLEN + TIMELEN + TYPELEN } |
| enumeration for Login packet data More... | |
Public Member Functions | |
| LoginPacket () | |
| Constructor that should be used to create a new packet. | |
| LoginPacket (char *data) | |
| Constructor that should be used to create an incomming packet. | |
| ~LoginPacket () | |
| Destructor for a packet. | |
| void | printPacket () |
| print out a packet | |
| int | setLogin (char *newLog) |
| set the login for a packet | |
| int | setPassword (char *newPass) |
| set the password for a packet | |
| char * | getLogin () |
| get the Login | |
| char * | getPassword () |
| get the password | |
| virtual void | registerPacket () |
| register the packet in the netmanager so it will be sent out | |
| virtual int | sendPacket (int fd) |
| send the packet out over a file descriptor | |
Private Attributes | |
| char * | user |
| user name for the packet | |
| char * | pass |
| password for the packet | |
|
|
enumeration for Login packet data
Definition at line 19 of file LoginPacket.h. |
|
|
get the Login
|
|
|
get the password
|
|
|
send the packet out over a file descriptor
Implements Packet. |
|
|
set the login for a packet
|
|
|
set the password for a packet
|
1.3.6