8 #include "Arp/System/Commons/Net/IpAddress.hpp"     9 #include "Arp/System/Commons/Net/SocketType.hpp"    10 #include "Arp/System/Commons/Net/SelectMode.hpp"    11 #include "Arp/System/Commons/Net/SocketError.hpp"    12 #include "Arp/System/Commons/Net/SocketDomain.hpp"    13 #include "Arp/System/Commons/Net/SocketOptionName.hpp"    16 namespace Arp { 
namespace System { 
namespace Ve
    21 namespace Arp { 
namespace System { 
namespace Commons { 
namespace Net
   120     typedef std::shared_ptr<Socket> 
Ptr;
   164     bool            IsBlocking(
void) 
const;
   176     IpAddress          GetRemoteIpAddress(
void) 
const;
   183     int          GetRemotePort(
void) 
const;
   278     int             Send(
const void *pBuffer, 
size_t length, 
SocketError& error);
   289     int             SendTo(
const void *pBuffer, 
size_t length, 
IpAddress ip4Adress, 
int port, 
SocketError& error);
   298     int             Receive(
void *pBuffer, 
size_t length, 
SocketError& error);
   309     int             ReceiveFrom(
void *pBuffer, 
size_t length, 
IpAddress& ip4Adress, 
int& port, 
SocketError& error);
   359     SocketError     GetOptionReuseAddress(
bool& enabled) 
const;
   380     SocketError     GetOptionKeepAlive(
bool& enabled) 
const;
   399     SocketError     GetOptionBroadcast(
bool& enabled) 
const;
   441     SocketError     SetOptionLinger(
bool enable, 
size_t timeout);
   449     SocketError     GetOptionLinger(
bool& enable, 
size_t& timeout);
   455     using ISocketService = Arp::System::Ve::ISocketService;
   459     Socket(ISocketService *pSocket); 
   466     ISocketService *pSocketService;
   492 inline bool Socket::IsBlocking(
void)
 const   499     return remoteIpAddress;
   502 inline int Socket::GetRemotePort(
void)
 const   507 inline bool Socket::IsConnected(
void)
 const   509     return this->isConnected;
 SocketType
Enumeration of supported socket types.
Definition: SocketType.hpp:13
 
SocketError
Possible error codes for socket operation results.
Definition: SocketError.hpp:14
 
Check if a connect request can be performed.
 
SocketOptionName
Specifies socket options to be set by the application. Copied from Eclr Socket Adaption ...
Definition: SocketOptionName.hpp:16
 
A connect request was made on an already connected socket.
 
Interface to realizes ethernet based communications.
Definition: Socket.hpp:115
 
Socket is in blocking mode, i.e. the Send*, Receive* and Accept methods will block if no data is avai...
 
std::chrono::microseconds Microseconds
The Arp Microseconds unit class.
Definition: TypeSystem.h:34
 
std::shared_ptr< Socket > Ptr
Contextual definition of pointer type.
Definition: Socket.hpp:120
 
SocketDomain
Supported communication domains, selecting the protocol for communication.
Definition: SocketDomain.hpp:13
 
Root namespace for the PLCnext API
 
SocketBlockingMode
Supported blocking modes.
Definition: Socket.hpp:25
 
Check if a connection request is pending.
 
A request to send or receive data was disallowed because the socket had already been shut down in tha...
 
SelectMode
Modes for Select call to check different data channels.
Definition: SelectMode.hpp:13
 
Unified representation for ip address schemes.
Definition: IpAddress.hpp:13
 
System components used by the System, Device, Plc or Io domains.
 
Socket is in non-blocking mode, i.e. the Send*, Receive* and Accept methods will not block if no data...
 
Interface to realize TLS Connection over TCP
Definition: TlsSocket.hpp:31