Very Simple Cross-Platform Library
Public Member Functions | List of all members
hu::varadiistvan::scpl::io::LocalServerSocket Class Reference

#include <LocalServerSocket.h>

Public Member Functions

 LocalServerSocket (const char *name, Waiter *waiter=0)
 
LocalAcceptorgetAcceptor ()
 

Detailed Description

A server socket that provides a local, named access point. On Linux, it is a Unix socket, on Windows it is a named pipe.

It is identified by a name that should be unique for the user.

Definition at line 47 of file LocalServerSocket.h.

Constructor & Destructor Documentation

◆ LocalServerSocket()

hu::varadiistvan::scpl::io::LocalServerSocket::LocalServerSocket ( const char *  name,
Waiter waiter = 0 
)

Construct the socket with the given name.

It will be bound to the name and able to listen for incoming connections.

Parameters
namethe name of the server socket that can be used by clients to connect to this socket
waiterthe waiter to use for waiting a possible event occuring on the socket. If given, the socket will be non-blocking. Otherwise, it will be blocking, and the accept() function of the Acceptor might block.

Member Function Documentation

◆ getAcceptor()

LocalAcceptor& hu::varadiistvan::scpl::io::LocalServerSocket::getAcceptor ( )

Get the acceptor.


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