All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
UT_InetDatagram Class Reference

#include <UT_IPC.h>

+ Inheritance diagram for UT_InetDatagram:

Public Member Functions

 UT_InetDatagram ()
 ~UT_InetDatagram ()
int accept (UT_InetDatagram &newstream)
int socketClient ()
int socketClient (const UT_InetAddress &ia)
int socketServer (const UT_InetAddress &ia)
virtual int socket ()
- Public Member Functions inherited from UT_InetSocket
 UT_InetSocket ()
 UT_InetSocket (UT_SocketType st)
 ~UT_InetSocket ()
int accept (UT_InetSocket &newsocket)
int bind (const UT_InetAddress &ia)
int connect (const UT_InetAddress &ia)
int getpeername (UT_InetAddress &ia)
int getsockname (UT_InetAddress &ia)
int recvfrom (char *buffer, int max, UT_InetAddress &is)
int sendto (char *buffer, int len, const UT_InetAddress &is)
- Public Member Functions inherited from UT_Socket
 UT_Socket (UT_AddressFamily af, UT_SocketType st)
virtual ~UT_Socket ()
 UT_Socket (UT_AddressFamily af)
 UT_Socket (UT_SocketType st)
virtual int close ()
int listen (int)
int recv (char *, int, UT_MsgReceiveFlags=UT_MsgReceiveNoFlags)
int recvfrom (char *, int, struct sockaddr *, int &, UT_MsgReceiveFlags=UT_MsgReceiveNoFlags)
int send (const char *, int, UT_MsgSendFlags=UT_MsgSendNoFlags)
int sendto (const char *, int, const struct sockaddr *, int, UT_MsgSendFlags=UT_MsgSendNoFlags)
int recvmsg (struct msghdr *, UT_MsgReceiveFlags=UT_MsgReceiveNoFlags)
int sendmsg (struct msghdr *, UT_MsgSendFlags=UT_MsgSendNoFlags)
void linger ()
int setOption (UT_SocketLevelOption slo, UT_FlagOption fo)
int getOption (UT_SocketLevelOption slo, UT_FlagOption &fo)
UT_AddressFamily address_family ()
UT_SocketType socket_type ()
UT_SocketSex socket_sex ()
int socket_protocol ()
int isclient ()
int isserver ()
- Public Member Functions inherited from UT_Transport
 UT_Transport ()
virtual ~UT_Transport ()
virtual int read (char *buffer, int len)
virtual int write (const char *buffer, int len)
virtual UT_IPCPacketgetPacket ()
virtual int readv (const IOVEC_PTR, int)
virtual int writev (const IOVEC_PTR, int)
virtual int ok ()
virtual int inuse ()
const char * getError () const
int getDescriptor () const

Additional Inherited Members

- Public Types inherited from UT_Socket
enum  UT_SocketSex { UT_Unknown, UT_Client, UT_Server }
enum  UT_AddressFamily { UT_AfUnix = AF_UNIX, UT_AfInet = AF_INET }
enum  UT_SocketType {
enum  UT_MsgSendFlags { UT_MsgSendNoFlags = 0, UT_MsgSendDontRoute = MSG_DONTROUTE, UT_MsgSendOob = MSG_OOB, UT_MsgSendDontRouteOob = MSG_OOB|MSG_DONTROUTE }
enum  UT_MsgReceiveFlags { UT_MsgReceiveNoFlags = 0, UT_MsgReceivePeek = MSG_PEEK, UT_MsgReceiveOob = MSG_OOB, UT_MsgReceivePeekOob = MSG_OOB|MSG_PEEK }
enum  UT_FlagOption { UT_Off = 0, UT_On = 1 }
enum  UT_SocketLevelOption {
  UT_Broadcast = SO_BROADCAST, UT_Debug = SO_DEBUG, UT_DontRoute = SO_DONTROUTE, UT_KeepAlive = SO_KEEPALIVE,
- Static Public Member Functions inherited from UT_Transport
static void daemon_start (int ignore_sigcld)
- Public Attributes inherited from UT_Transport
int return_on_error
- Protected Types inherited from UT_Transport
enum  UT_ShutDownType { UT_ShutDownReceive = 0, UT_ShutDownSend = 1, UT_ShutDownBoth = 2 }
- Protected Member Functions inherited from UT_Socket
virtual void shutdown (UT_ShutDownType)
int accept (struct sockaddr *sa, int &len)
int bind (const struct sockaddr *, int)
int connect (const struct sockaddr *, int)
int getpeername (struct sockaddr *, int &len)
int getsockname (struct sockaddr *, int &len)
int getsockopt (int, int, char *, int *)
int setsockopt (int, int, const char *, int)
int check_syscall (int state, const char *mess)
int syscall (int state, const char *mess)
- Protected Member Functions inherited from UT_Transport
void setError (const char *module, const char *func, const char *mess)
int readPartial (char *buffer, int len)
int writePartial (char *buffer, int len)
- Protected Attributes inherited from UT_Socket
UT_SocketType type
UT_AddressFamily family
int protocol
UT_SocketSex sex
- Protected Attributes inherited from UT_Transport
int status
int td
char errorMsg [256]

Detailed Description

Definition at line 346 of file UT_IPC.h.

Constructor & Destructor Documentation

UT_InetDatagram::UT_InetDatagram ( )
UT_InetDatagram::~UT_InetDatagram ( )

Member Function Documentation

int UT_InetDatagram::accept ( UT_InetDatagram newstream)
virtual int UT_InetDatagram::socket ( )

Reimplemented from UT_Socket.

int UT_InetDatagram::socketClient ( )
int UT_InetDatagram::socketClient ( const UT_InetAddress ia)
int UT_InetDatagram::socketServer ( const UT_InetAddress ia)

The documentation for this class was generated from the following file: