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