source: network-game/server/Player.h@ cbc595d

Last change on this file since cbc595d was 41ad8ed, checked in by dportnoy <dmp1488@…>, 12 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
7using namespace std;
8
9class Player {
10public:
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.