Samchon Framework for CPP
1.0.0
Main Page
Related Pages
Namespaces
Classes
Files
File List
ChatServer.hpp
1
#pragma once
2
#include <samchon/protocol/service/Server.hpp>
3
4
namespace
samchon
5
{
6
namespace
example
7
{
8
namespace
chat_service
9
{
10
class
ChatRoomArray;
11
class
ChatRoom;
12
22
class
ChatServer
23
:
public
protocol::service::Server
24
{
25
protected
:
26
typedef
protocol::service::Server super;
27
28
virtual
auto
PORT()
const
->
int
override
29
{
30
return
37749;
31
};
32
33
private
:
37
ChatRoomArray
*
roomArray
;
38
39
public
:
43
ChatServer
();
44
virtual
~
ChatServer
();
45
46
protected
:
47
virtual
auto
createUser() -> protocol::service::User*
override
;
48
49
public
:
53
auto
getChatRoomArray
() const ->
ChatRoomArray
*;
54
};
55
};
56
};
57
};
samchon::example::chat_service::ChatServer
A chat server.
Definition:
ChatServer.hpp:22
samchon::example::chat_service::ChatServer::getChatRoomArray
auto getChatRoomArray() const -> ChatRoomArray *
Get chat room list.
samchon::example::chat_service::ChatServer::ChatServer
ChatServer()
Default Constructor.
samchon::example::chat_service::ChatServer::roomArray
ChatRoomArray * roomArray
A manager of chat rooms.
Definition:
ChatServer.hpp:31
samchon::example::chat_service::ChatRoomArray
A manager of chat rooms.
Definition:
ChatRoomArray.hpp:31
samchon
Definition:
ByteArray.hpp:6
cpp
samchon
examples
chat_service.bak
ChatServer.hpp
Generated by
1.8.11