EnsLib.TCP.OutboundAdapter
class EnsLib.TCP.OutboundAdapter extends Ens.OutboundAdapter, EnsLib.TCP.Common
A generic, protocol-agnostic TCP adapter. Handles making connections. Traffic content is up to the associated Business Operation class.Property Inventory
- %lastRetryReconnect
- BackupIPAddr
- BackupPort
- ConnectTimeout
- GetReply
- IPAddress
- KeepaliveInterval
- Port
- ReconnectRetry
- ResponseTimeout
- RetriesToFailover
Method Inventory
- Connect()
- ConnectedSet()
- Disconnect()
- Failover()
- OnInit()
- OnKeepalive()
- OnTearDown()
- TestConnection()
Parameters
Properties
For this adapter, both Backup IP Address and Backup Port must be supplied in order to failover.
Note that this backup server must accept the same values as the original server for important settings such as SSLConfig.
For this adapter, both Backup IP Address and Backup Port must be supplied in order to failover.
If IPAddress starts with '!', the Adapter will wait for a connection from a remote system. If no IP address follows the '!', any remote system may connect; otherwise any listed IP addresses/ports will be allowed to connect.
After the '!' you may enter a comma-separated list of remote IP addresses to accept connections from, with IP addresses in dotted decimal form for IPV4 and colon-hex form for IPV6, with optional :port for IPV4 and |port for IPV6, e.g. 192.168.1.22, 192.168.1.22:3298 or fe80::4c60:9595:7fb3:8139, fe80::4c60:9595:7fb3:8139|3298.
You may also include CIDR ranges, e.g
192.168.1.0/24 or fe80::4c60:9595:7fb3:0/112.
If :port or |port is specified, connections from other ports at the associated address will be refused.
CIDR ranges cannot include a port.
A value of -1 means never failover. A value of 0 means to failover for the first retry, 1 means to give it one retry with the normal address before failing over for the second retry, etc.
Default value is 5.
Note that if this value is equal to or less than the value of Reconnect Retry, we will swap to the backup before attempting to refresh the connection and so ReconnectRetry will not have a change to occur.
Methods
Inherited Members
Inherited Properties
- %CredentialsObj
- %WarnedLatest
- %logConnections
- BusinessHost
- Connected
- Credentials
- Device
- IOAddr
- LocalInterface
- OldIO
- ReadTimeout
- RegistryID
- SSLConfig
- Socket
- StayConnected
- Terminators
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- AssignOneSetting()
- ClearAllAppData()
- ClearRuntimeAppData()
- ClearStaticAppData()
- CredentialsSet()
- EnumerateSettingsClose()
- EnumerateSettingsExecute()
- EnumerateSettingsFetch()
- FlushWrite()
- GetAddress()
- GetSettings()
- IsReadError()
- IsWriteError()