47 #ifndef CCXX_MISSING_H_
51 #ifndef CCXX_SOCKET_H_
55 #ifdef CCXX_NAMESPACES
92 UnixSocket(
const char* pathname,
int backlog = 5);
140 void allocate(
int size);
146 void endStream(
void);
154 virtual int underflow(
void);
173 int overflow(
int ch);
181 void connect(
const char* pathname,
int size);
191 {
return ((std::iostream *)
this);};
286 unixstream(
const char *pathname,
int buffer = 512);
304 void open(
const char *pathname,
int buffer = 512)
313 void open(
UnixSocket &unixsock,
int buffer = 512);
323 bool operator!()
const;
370 UnixSession(
const char* pathname,
int size = 512,
int pri = 0,
int stack = 0);
382 int pri = 0,
int stack = 0);
392 #ifdef CCXX_NAMESPACES
virtual bool isPending(Pending pend, timeout_t timeout=TIMEOUT_INF)
Get the status of pending operations.
The Socket is used as the base for all Internet protocol services under Common C++.
int getBufferSize(void) const
Return the size of the current stream buffering used.
void close(void)
Close the active tcp stream connection.
void setTimeout(timeout_t to)
Set the I/O operation timeout for socket I/O operations.
substitute functions which may be missing in target platform libc.
Unix domain sockets are used for stream based connected sessions between processes on the same machin...
Unix streams are used to represent Unix domain client connections to a local server for accepting cli...
The socket port is an internal class which is attached to and then serviced by a specific SocketServi...
bool isPendingConnection(timeout_t timeout=TIMEOUT_INF)
Used to wait for pending connection requests.
The Unix domain session is used to primarily to represent a client connection that can be managed on ...
Every thread of execution in an application is created by instantiating an object of a class derived ...
void connect(const char *pathname, int size)
Create a Unix domain stream by connecting to a Unix domain socket.
A more natural C++ "unixstream" class for use by non-threaded applications.
std::iostream * unixstr(void)
Used in derived classes to refer to the current object via it's iostream.
void open(const char *pathname, int buffer=512)
Open a tcp stream connection.
Network addresses and sockets related classes.