table of contents
other versions
- jessie 1.4-1
shevek::socket(3) | Library Functions Manual | shevek::socket(3) |
NAME¶
shevek::socket - Use a unix-domain, tcp or avahi network connection with shevek::fd.SYNOPSIS¶
#include <socket.hh> Inherits shevek::fd. Inherited by shevek::telnet.Public Types¶
typedef sigc::signal0< void > disconnect_t
Public Member Functions¶
void listen_unix (std::string const &file, listen_t cb, unsigned queue=10)
Static Public Member Functions¶
static Glib::RefPtr< socket > create (Glib::RefPtr< Glib::MainContext > main=Glib::MainContext::get_default())
Protected Member Functions¶
socket (Glib::RefPtr< Glib::MainContext > main)
Detailed Description¶
Use a unix-domain, tcp or avahi network connection with shevek::fd.Member Function Documentation¶
void shevek::socket::connect (std::string const &port)¶
Connect to a socket. This is the preferred function to use. Format: UNIX domain sockets: anything with at least one / in it. TCP: hostname:port, where the hostname and colon may be omitted, and the port may be a service or number. Avahi: name|protocol, where name is the application name, and protocol the connection type.void shevek::socket::listen (std::string const &port, listen_tcb, unsignedqueue = 10)¶
Listen for new connections. This is the preferred function to use. Format: UNIX domain sockets: anything with at least one / in it. TCP services: the name. TCP port numbers: the number. For TCP, appending |name|protocol, where name is the application name and protocol the connection type.Author¶
Generated automatically by Doxygen for libshevek from the source code.Wed Jul 9 2014 | libshevek |