|
PLCnext API Documentation
20.0.0.24462
|
Namespace for network specific classes, enumerations and functions. More...
Classes | |
| class | IpAddress |
| Unified representation for ip address schemes. More... | |
| class | Socket |
| Interface to realizes ethernet based communications. More... | |
| class | TlsSocket |
| Interface to realize TLS Connection over TCP More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, SocketError arg) |
| std::istream & | operator>> (std::istream &is, SocketError &arg) |
Namespace for network specific classes, enumerations and functions.
|
strong |
|
strong |
Supported blocking modes.
| Enumerator | |
|---|---|
| None | Blocking mode is undefined. |
| Blocking | Socket is in blocking mode, i.e. the Send*, Receive* and Accept methods will block if no data is available. |
| NoneBlocking | Socket is in non-blocking mode, i.e. the Send*, Receive* and Accept methods will not block if no data is available. |
|
strong |
|
strong |
Possible error codes for socket operation results.
| Enumerator | |
|---|---|
| None | The Socket operation succeeded. |
| Any | An unspecified Socket error has occurred. |
| Interrupted | A blocking operation was interrupted. |
| InvalidArgument | An invalid argument was supplied. |
| TooManyOpenSockets | Too many open sockets. |
| WouldBlock | A non-blocking socket operation could not be completed immediately. |
| InProgress | A blocking operation is currently executing. |
| AlreadyInProgress | An operation was attempted on a non-blocking socket that already had an operation in progress. |
| NotSocket | An operation was attempted on something that is not a socket. |
| DestinationAddressRequired | A required address was omitted from an operation on a socket. |
| MessageSize | A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself. |
| ProtoType | A protocol was specified in the socket function call that does not support the semantics of the socket type requested. |
| ProtocolOption | An unknown, invalid, or unsupported option or level was specified in a getsockopt or setsockopt call. |
| ProtocolNotSupported | The requested protocol has not been configured into the system, or no implementation for it exists. |
| SocketNotSupported | The support for the specified socket type does not exist in this address family. |
| OperationNotSupported | The attempted operation is not supported for the type of object referenced. |
| ProtocolFamilyNotSupported | The protocol family has not been configured into the system or no implementation for it exists. |
| AddressFamilyNotSupported | An address incompatible with the requested protocol was used. |
| AddressAlreadyInUse | Only one usage of each socket address (protocol/network address/port) is normally permitted. |
| AddressNotAvailable | The requested address is not valid in its context. |
| NetworkDown | A socket operation encountered a dead network. |
| NetworkUnreachable | A socket operation was attempted to an unreachable network. |
| NetworkReset | The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress. |
| ConnectionAborted | An established connection was aborted by the software in your host machine. |
| ConnectionReset | An existing connection was forcibly closed by the remote host. |
| NoBufferSpaceAvailable | An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full. |
| IsConnected | A connect request was made on an already connected socket. |
| NotConnected | A request to send or receive data was disallowed because the socket is not connected and (when sending on a datagram socket using a sendto call) no address was supplied. |
| Shutdown | A request to send or receive data was disallowed because the socket had already been shut down in that direction with a previous shutdown call. |
| TimedOut | A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. |
| ConnectionRefused | No connection could be made because the target machine actively refused it. |
| HostDown | A socket operation failed because the destination host was down. |
| HostUnreachable | A socket operation was attempted to an unreachable host. |
| ProcessLimit | A Sockets implementation may have a limit on the number of applications that may use it simultaneously. |
| SystemNotReady | Startup cannot function at this time because the underlying system it uses to provide network services is currently unavailable. |
| VersionNotSupported | The Sockets version requested is not supported. |
| NotInitialized | Either the application has not called Startup, or Startup failed. |
| Disconnecting | Returned by Recv or RecvFrom to indicate the remote party has initiated a graceful shutdown sequence. |
| HostNotFound | No such host is known. |
| TryAgain | This is usually a temporary error during host name resolution and means that the local server did not receive a response from an authoritative server. |
|
strong |
Specifies socket options to be set by the application. Copied from Eclr Socket Adaption
|
strong |
1.8.13