VideoTools
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
G::LocalSocket Class Reference

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.
 

Detailed Description

and accept()ing should be performed directly on the file descriptor.

See Also
G::Msg

Definition at line 72 of file glocalsocket.h.

Member Function Documentation

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.


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