1 #ifndef __JNET__JSERVERSOCKET__
2 #define __JNET__JSERVERSOCKET__
4 #include <sys/select.h>
16 namespace JPP {
using namespace JNET; }
39 JSocket(PF_INET, SOCK_STREAM, 0)
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.
JServerSocket(const int port, const int backlog)
Constructor.
void setTcpNoDelay(const bool on)
Set TCP no-delay.
void setFamily(const int family)
Set family.