zutil-cpp/net/serversocket.h

18 lines
308 B
C++

#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