|
Last change
on this file since baaf6c8 was 41ad8ed, checked in by dportnoy <dmp1488@…>, 13 years ago |
|
The server properly handles registration messages
|
-
Property mode
set to
100644
|
|
File size:
351 bytes
|
| Line | |
|---|
| 1 | #ifndef _PLAYER_H
|
|---|
| 2 | #define _PLAYER_H
|
|---|
| 3 |
|
|---|
| 4 | #include <netinet/in.h>
|
|---|
| 5 | #include <string>
|
|---|
| 6 |
|
|---|
| 7 | using namespace std;
|
|---|
| 8 |
|
|---|
| 9 | class Player {
|
|---|
| 10 | public:
|
|---|
| 11 | Player(string name, string password);
|
|---|
| 12 | Player(string name, sockaddr_in addr); // this will be deleted
|
|---|
| 13 | ~Player();
|
|---|
| 14 |
|
|---|
| 15 | void setAddr(sockaddr_in addr);
|
|---|
| 16 |
|
|---|
| 17 | string name;
|
|---|
| 18 | string password;
|
|---|
| 19 | sockaddr_in addr;
|
|---|
| 20 | };
|
|---|
| 21 |
|
|---|
| 22 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.