17 #ifndef _DECAF_NET_SERVERSOCKET_H_ 18 #define _DECAF_NET_SERVERSOCKET_H_ 58 mutable volatile bool created;
175 virtual void bind(
const std::string& host,
int port );
195 virtual void bind(
const std::string& host,
int port,
int backlog );
217 virtual void close();
222 virtual bool isClosed()
const;
227 virtual bool isBound()
const;
237 virtual int getReceiveBufferSize()
const;
248 virtual void setReceiveBufferSize(
int size );
257 virtual bool getReuseAddress()
const;
267 virtual void setReuseAddress(
bool reuse );
276 virtual int getSoTimeout()
const;
288 virtual void setSoTimeout(
int timeout );
295 virtual int getLocalPort()
const;
300 virtual std::string toString()
const;
328 virtual void implAccept(
Socket* socket );
335 virtual int getDefaultBacklog();
340 void checkClosed()
const;
343 void ensureCreated()
const;
346 void setupSocketImpl(
int port,
int backlog,
const InetAddress* ifAddress );
352 #endif // _DECAF_NET_SERVERSOCKETIMPL_H_
Factory class interface for a Factory that creates ScoketImpl objects.
Definition: SocketImplFactory.h:38
Represents an IP address.
Definition: InetAddress.h:33
Acts as a base class for all physical Socket implementations.
Definition: SocketImpl.h:42
#define DECAF_API
Definition: Config.h:29
This class implements server sockets.
Definition: ServerSocket.h:50
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements...
Definition: AprPool.h:25