Library of Assembled Shared Sources
lass::io::Socket Class Reference

TCP/IP socket. More...

#include <socket.h>

Inheritance diagram for lass::io::Socket:
Collaboration diagram for lass::io::Socket:

Public Member Functions

TPort bindInRange (TPort begin, TPort end)
 Bind to the first available port in range [begin, end).
 
TPort bindInRange (const std::string &address, TPort begin, TPort end)
 Bind to the first available port in range [begin, end).
 

Detailed Description

TCP/IP socket.

Definition at line 75 of file socket.h.

Member Function Documentation

◆ bindInRange() [1/2]

Socket::TPort lass::io::Socket::bindInRange ( TPort begin,
TPort end )

Bind to the first available port in range [begin, end).

complexity: O(n)

Definition at line 115 of file socket.cpp.

References bindInRange().

Referenced by bindInRange().

◆ bindInRange() [2/2]

Socket::TPort lass::io::Socket::bindInRange ( const std::string & address,
TPort begin,
TPort end )

Bind to the first available port in range [begin, end).

complexity: O(n)

Definition at line 125 of file socket.cpp.


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