API Guides > ConceptRT 3.x
Socket Class Reference

Socket. More...

Detailed Description

+ Inheritance diagram for Socket:

Public Member Methods

 Socket ()
 Default constructor. More...
 
virtual ~Socket ()
 Destructor. More...
 
void Close ()
 Closes this object. More...
 
bool IsOpen () const
 Query if the socket is open. More...
 
PCChar8 GetHostName () const
 Gets the host name. More...
 
Int32 GetPort () const
 Gets the port. More...
 
const PeerInfoGetPeerInfo () const
 Gets the peer information. More...
 
void SetOption (SocketOption option, bool value)
 Sets an option. More...
 

Constructor & Destructor Documentation

Socket ( )

Default constructor.

Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
virtual ~Socket ( )
virtual

Destructor.

Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.

Methods Documentation

void Close ( )

Closes this object.

Warning
Non-Deterministic. Determinism when using ConceptRT library can be ensure by using Context Time Critical mechanisms.
PCChar8 GetHostName ( ) const

Gets the host name.

Returns
The host name.
const PeerInfo& GetPeerInfo ( ) const

Gets the peer information.

Returns
The peer information.
Int32 GetPort ( ) const

Gets the port.

Returns
The port.
bool IsOpen ( ) const

Query if the socket is open.

Returns
true if open, false if not.
void SetOption ( SocketOption  option,
bool  value 
)

Sets an option.

Parameters
optionSelect the option.
valueActivate if true, desactivate is false the option.