LRT13  1.0
 All Classes Namespaces Functions Variables Enumerations Enumerator
NetServer.h
1 #ifndef NET_SERVER_H_
2 #define NET_SERVER_H_
3 //sdfjdk
4 #include <stdio.h>
5 
6 #include <unistd.h>
7 #include <sys/types.h>
8 #include <sys/socket.h>
9 
10 #include "NetPeer.h"
11 #include "NetChannel.h"
12 
13 using namespace Network;
14 
15 namespace Network
16 {
17  class NetServer : public NetPeer
18  {
19  public:
20  NetServer(int port);
21 
22  void SendToAll(NetBuffer* buff, NetChannel::Enum method, int channel);
23 
24  vector<NetConnection*> Connections();
25  };
26 };
27 
28 #endif