1 #ifndef __JNET__JSERVERSOCKET__
2 #define __JNET__JSERVERSOCKET__
4 #include <sys/select.h>
16 namespace JPP {
using namespace JNET; }
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
int getFileDescriptor() const
Get file descriptor.
Auxiliary class for method select.
JServerSocket(const int port, const int backlog)
Constructor.
const sockaddr * getSockaddr() const
Get sockaddr.
void setIPnumber()
Set any IP number.
void setPort(const int port)
Set port number.
void setReuseAddress(const bool on)
Set reuse address.
void setTcpNoDelay(const bool on)
Set TCP no-delay.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).