Go to the documentation of this file. 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)
int getFileDescriptor() const
Get file descriptor.
void setReuseAddress(const bool on)
Set reuse address.
const sockaddr * getSockaddr() const
Get sockaddr.
Interprocess communication.
void setTcpNoDelay(const bool on)
Set TCP no-delay.
This name space includes all other name spaces (except KM3NETDAQ, KM3NET and ANTARES).
#define THROW(JException_t, A)
Marco for throwing exception with std::ostream compatible message.
void setIPnumber()
Set any IP number.
Auxiliary class for method select.
void setFamily(const int family)
Set family.
void setPort(const int port)
Set port number.
JServerSocket(const int port, const int backlog)
Constructor.