claw  1.9.0
Public Member Functions | Protected Attributes | List of all members
claw::net::basic_socket Class Reference

Common interface for claw::net::basic_socketbuf and claw::net::socket_server. More...

#include <basic_socket.hpp>

Inheritance diagram for claw::net::basic_socket:
Inheritance graph
[legend]

Public Member Functions

 basic_socket ()
 Constructor. More...
 
basic_socketopen ()
 Open the socket. More...
 
basic_socketclose ()
 Close the socket. More...
 
bool is_open () const
 Tell if the socket is open.
 

Protected Attributes

socket_traits::descriptor m_descriptor
 File descriptor.
 

Detailed Description

Common interface for claw::net::basic_socketbuf and claw::net::socket_server.

Author
Julien Jorge

Definition at line 47 of file basic_socket.hpp.

Constructor & Destructor Documentation

◆ basic_socket()

claw::net::basic_socket::basic_socket ( )

Constructor.

Postcondition
is_open() == false

Definition at line 36 of file basic_socket.cpp.

Member Function Documentation

◆ close()

claw::net::basic_socket * claw::net::basic_socket::close ( )

Close the socket.

Returns
this if everything works fine, NULL otherwise.

Definition at line 60 of file basic_socket.cpp.

◆ open()

claw::net::basic_socket * claw::net::basic_socket::open ( )

Open the socket.

Returns
this is everything works fine, NULL otherwise.

Definition at line 44 of file basic_socket.cpp.


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