cpp utils files, network and a smal util class
This commit is contained in:
parent
ea3dffdb4a
commit
62f50a2f79
13 changed files with 610 additions and 0 deletions
18
net/serversocket.h
Normal file
18
net/serversocket.h
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
#ifndef ZUTIL_NET_SERVERSOCKET
|
||||
#define ZUTIL_NET_SERVERSOCKET
|
||||
|
||||
#include "socket.h"
|
||||
using namespace std;
|
||||
|
||||
namespace zutil{
|
||||
class ServerSocket : protected Socket{
|
||||
public:
|
||||
ServerSocket( int port );
|
||||
virtual ~ServerSocket(){};
|
||||
|
||||
Socket* accept( );
|
||||
void accept( Socket& );
|
||||
};
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue