Last change
on this file since 2318fff was 73f75c1, checked in by dportnoy <dmp1488@…>, 12 years ago |
Created findPlayerByAddr and added some more checks on the client name and address when receiving a message
|
-
Property mode
set to
100644
|
File size:
270 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 | string name;
|
---|
12 | sockaddr_in addr;
|
---|
13 |
|
---|
14 | player(string name, sockaddr_in addr);
|
---|
15 | ~player();
|
---|
16 |
|
---|
17 | bool operator == (const player &p);
|
---|
18 | };
|
---|
19 |
|
---|
20 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.