OSDN Git Service

dfc4bf3e542d9fcbc3f5803cbbbcd65c0ef770bc
[internetcity/prototype.git] / common / CClientConnection.h
1 #ifndef INC_CClientConnection
2 #define INC_CClientConnection
3
4 // \83C\83\93\83N\83\8b\81[\83h\82Í\95K\82¸\95K\97v\82È\95¨\82¾\82¯
5 // \93à\95\94\82Å\97\98\97p\82·\82é\82¾\82¯\82Ì\95¨\82Í\83\\81[\83X\82É\8bL\8fq
6 #include "Environment.h"
7 #include "CSocket.h"
8 #include "Data.h"
9
10 // \8aÖ\90\94\96¼\82Í\83\8d\81[\83\8f\83L\83\83\83\81\83\8b\83P\81[\83X\82Æ\82·\82é
11
12 ////////////////////////////////////////////////////////////////////////////////
13 // CClientConnection
14 // \92Ê\90M\97p\83N\83\89\83X
15 // internetcity\97p\82Ì\92Ê\90M\97p
16 // \83R\83}\83\93\83h\82È\82çTCP\81A\89¹\90º\82È\82çUDP\82ð\8eg\97p\82·\82é
17 // \8d\\95\89ð\90Í\82Ì\8b@\94\\82ð\8eÀ\8c»\82·\82é
18 // \8f\88\97\9d\82É\82©\82©\82í\82é\93à\97e\82Í\8bL\8fq\82µ\82È\82¢
19 ////////////////////////////////////////////////////////////////////////////////
20 class CClientConnection : public CSocket
21 {
22         ////////////////////////////////////////////////////////////////////////////////
23         // \83\81\83\93\83o\95Ï\90\94
24         ////////////////////////////////////////////////////////////////////////////////
25 private:
26         // \82 \82Æ\82Å\8fÁ\82·
27         bool m_isLogin;
28
29         ////////////////////////////////////////////////////////////////////////////////
30         // \83R\83\93\83X\83g\83\89\83N\83^
31         ////////////////////////////////////////////////////////////////////////////////
32 public:
33         CClientConnection();
34
35         ////////////////////////////////////////////////////////////////////////////////
36         // \83f\83X\83g\83\89\83N\83^
37         ////////////////////////////////////////////////////////////////////////////////
38 public:
39         ~CClientConnection();
40
41         ////////////////////////////////////////////////////////////////////////////////
42         // static\8aÖ\90\94\81A\83R\81[\83\8b\83o\83b\83N\8aÖ\90\94
43         ////////////////////////////////////////////////////////////////////////////////
44         ////////////////////////////////////////////////////////////////////////////////
45         // \91\80\8dì\83\81\83\\83b\83h
46         ////////////////////////////////////////////////////////////////////////////////
47 public:
48         // initialize
49         bool initialize();
50
51         // send\8aÖ\98A
52 protected:
53         // send
54         bool send(const CommunicationData* in_pCommunicationData);
55 public:
56         // login
57         bool login(const char* in_pLoginName);
58         // logout
59         bool logout();
60         // \8dÀ\95W\8eæ\93¾
61         bool requestPosition();
62         // \88Ú\93®
63         bool requestMove(char in_Direction);
64         // \89¹\90º\91\97\90M
65         bool sendVoice(char* in_pVoice, int in_Length, bool in_isEnd);
66
67         // receive\8aÖ\98A
68 public:
69         // receive
70         bool receive(CommunicationData** out_ppCommunicationData);
71
72         ////////////////////////////////////////////////////////////////////////////////
73         // \91®\90«\83\81\83\\83b\83h
74         ////////////////////////////////////////////////////////////////////////////////
75         ////////////////////////////////////////////////////////////////////////////////
76         // \83C\83e\83\8c\81[\83V\83\87\83\93
77         ////////////////////////////////////////////////////////////////////////////////
78         ////////////////////////////////////////////////////////////////////////////////
79         // \8fó\91Ô
80         ////////////////////////////////////////////////////////////////////////////////
81
82         ////////////////////////////////////////////////////////////////////////////////
83         // \89\89\8eZ\8eq
84         ////////////////////////////////////////////////////////////////////////////////
85         ////////////////////////////////////////////////////////////////////////////////
86         // \8f\83\90\88\89¼\91z\8aÖ\90\94\81A\92è\8b`\82Ì\82Ý\81i\94ñ\8eÀ\91\95\92ñ\8b\9f\81j
87         ////////////////////////////////////////////////////////////////////////////////
88         ////////////////////////////////////////////////////////////////////////////////
89         // \93à\95\94\83N\83\89\83X
90         ////////////////////////////////////////////////////////////////////////////////
91
92
93 };
94
95 #endif //INC_CClientConnection