VideoTools
|
and accept()ing should be performed directly on the file descriptor. More...
#include <glocalsocket.h>
Public Types | |
typedef LocalSocketAddress | Address |
Public Member Functions | |
LocalSocket (bool datagram) | |
Constructor for a datagram socket or a stream socket. | |
~LocalSocket () | |
Destructor. | |
bool | connect (const std::string &address_path, bool no_throw=false) |
Connects to the given address. More... | |
void | bind (const std::string &address_path) |
Binds the given address to the socket. Throws Error on error. | |
void | nonblock () |
Makes the socket non-blocking. | |
int | fd () const |
Returns the socket's file descriptor. | |
bool | connected () const |
Returns true if the socket has been successfully connect()ed. | |
and accept()ing should be performed directly on the file descriptor.
Definition at line 72 of file glocalsocket.h.
bool G::LocalSocket::connect | ( | const std::string & | address_path, |
bool | no_throw = false |
||
) |
Connects to the given address.
For datagram sockets this just becomes the default destination address. By default throws Error on error.
Definition at line 73 of file glocalsocket.cpp.