PLCnext API Documentation 24.6.0.58
|
Classes | |
struct | PeerCredentials |
Public Types | |
enum class | SocketType { None = 0 , Tcp = 1 , Udp = 2 } |
enum class | SocketDomain { None = 0 , Ipv4 = 1 , Ipv6 = 2 , Local } |
enum class | SocketBlockingMode { None = 0 , Blocking = 1 , NoneBlocking = 2 } |
enum class | SelectMode { SelectRead = 0 , SelectWrite = 1 , SelectConnect = 3 , SelectAccept = 4 } |
enum class | PollMode { None = 0 , Read = 1 , Write = 2 , Connect = 3 , Accept = 4 } |
enum class | ShutdownMode { Read = 0 , Write = 1 , ReadWrite = 2 } |
enum class | SocketOptionName { SocketOptionReuseAddress = 0x0004 , SocketOptionKeepAlive = 0x0008 , SocketOptionBroadcast = 0x0020 , SocketOptionLinger = 0x0080 , SocketOptionReceiveTimeout = 0x0200 , SocketOptionSendTimeout = 0x0800 , SocketOptionNoDelay = 1 , SocketOptionPeerCredentials = 2 , SocketOptionUserTimeout = 100 , SocketOptionKeepAliveIdleTime = 101 , SocketOptionKeepAliveProbeInterval = 102 , SocketOptionKeepAliveProbeCount = 103 } |
Specifies socket options to be set by the application. Copied from Eclr Socket Adaption More... | |
enum class | SocketError { Success = 0 , Unspecified = -1 , Interrupted = (10000 + 4) , InvalidArgument = (10000 + 22) , TooManyOpenSockets = (10000 + 24) , WouldBlock = (10000 + 35) , InProgress = (10000 + 36) , AlreadyInProgress = (10000 + 37) , NotSocket = (10000 + 38) , DestinationAddressRequired = (10000 + 39) , MessageSize = (10000 + 40) , ProtoType = (10000 + 41) , ProtocolOption = (10000 + 42) , ProtocolNotSupported = (10000 + 43) , SocketNotSupported = (10000 + 44) , OperationNotSupported = (10000 + 45) , ProtocolFamilyNotSupported = (10000 + 46) , AddressFamilyNotSupported = (10000 + 47) , AddressAlreadyInUse = (10000 + 48) , AddressNotAvailable = (10000 + 49) , NetworkDown = (10000 + 50) , NetworkUnreachable = (10000 + 51) , NetworkReset = (10000 + 52) , ConnectionAborted = (10000 + 53) , ConnectionReset = (10000 + 54) , NoBufferSpaceAvailable = (10000 + 55) , IsConnected = (10000 + 56) , NotConnected = (10000 + 57) , Shutdown = (10000 + 58) , TimedOut = (10000 + 60) , ConnectionRefused = (10000 + 61) , HostDown = (10000 + 64) , HostUnreachable = (10000 + 65) , ProcessLimit = (10000 + 67) , SystemNotReady = (10000 + 91) , VersionNotSupported = (10000 + 92) , NotInitialized = (10000 + 93) , Disconnecting = (10000 + 101) , HostNotFound = (10000 + 1001) , TryAgain = (10000 + 1002) } |
Public Member Functions | |
virtual SocketError | Bind (uint32 ip4Address, int &port)=0 |
virtual SocketError | Bind (const String &path)=0 |
virtual ISocketService * | Accept (uint32 &ip4Address, int &port, SocketError &error)=0 |
virtual ISocketService * | Accept (String &path, SocketError &error)=0 |
virtual SocketError | Connect (uint32 ip4Address, int port)=0 |
virtual SocketError | Connect (const String &path)=0 |
virtual SocketError | Listen (int backlog)=0 |
virtual SocketError | SetSockOpt (SocketOptionName optionName, const void *optionValue, size_t optionLength)=0 |
virtual SocketError | GetSockOpt (SocketOptionName optionName, void *optionValue, size_t *optionLength)=0 |
virtual int | Select (SelectMode mode, size_t timeout_us, SocketError &error)=0 |
virtual int | Poll (PollMode mode, size_t timeoutMillis, SocketError &error)=0 |
virtual SocketError | Close (void)=0 |
virtual SocketError | Shutdown (void)=0 |
virtual SocketError | Shutdown (ShutdownMode mode)=0 |
virtual int | Send (const void *pBuffer, size_t len, SocketError &error)=0 |
virtual int | SendTo (const void *pBuffer, size_t len, SocketError &error, uint32 ip4Address, int port)=0 |
virtual int | Recv (void *pBuffer, size_t len, SocketError &error)=0 |
virtual int | RecvFrom (void *pBuffer, size_t len, SocketError &error, uint32 &ip4Address, int &port)=0 |
virtual SocketError | SetOptionBlocking (bool enable)=0 |
virtual SocketError | SetOptionLinger (bool enable, size_t timeout)=0 |
virtual SocketError | GetOptionLinger (bool &enable, size_t &timeout)=0 |
virtual SocketError | SetOptionUserTimeout (size_t timeout_ms)=0 |
virtual SocketError | GetOptionUserTimeout (size_t &timeout_ms)=0 |
virtual SocketError | SetOptionKeepAliveIdleTime (int seconds)=0 |
virtual SocketError | GetOptionKeepAliveIdleTime (int &seconds)=0 |
virtual SocketError | SetOptionKeepAliveProbeInterval (int seconds)=0 |
virtual SocketError | GetOptionKeepAliveProbeInterval (int &seconds)=0 |
virtual SocketError | SetOptionKeepAliveProbeCount (int probeCount)=0 |
virtual SocketError | GetOptionKeepAliveProbeCount (int &probeCount)=0 |
virtual intptr | GetNativeHandle () const =0 |
virtual PeerCredentials | GetPeerCredentials (SocketError &error)=0 |
![]() | |
virtual const String & | GetServiceDescription (void) const =0 |
virtual ServiceType | GetServiceType (void) const =0 |
|
strong |
|
strong |
|
strong |
Specifies socket options to be set by the application. Copied from Eclr Socket Adaption