Interface CommonSocketOptions
- All Known Implementing Classes:
AbstractInternetProtocolReceivingChannelAdapter
,AbstractInternetProtocolSendingMessageHandler
,MulticastReceivingChannelAdapter
,MulticastSendingMessageHandler
,UnicastReceivingChannelAdapter
,UnicastSendingMessageHandler
public interface CommonSocketOptions
- Since:
- 2.0
- Author:
- Gary Russell
-
Method Summary
Modifier and Type Method Description void
setLocalAddress(String localAddress)
On a multi-homed system, specifies the ip address of the network interface used to communicate.void
setSoReceiveBufferSize(int soReceiveBufferSize)
void
setSoSendBufferSize(int soSendBufferSize)
void
setSoTimeout(int soTimeout)
-
Method Details
-
setSoTimeout
void setSoTimeout(int soTimeout)- Parameters:
soTimeout
- The timeout.- See Also:
Socket.setSoTimeout(int)
,DatagramSocket.setSoTimeout(int)
-
setSoReceiveBufferSize
void setSoReceiveBufferSize(int soReceiveBufferSize)- Parameters:
soReceiveBufferSize
- The receive buffer size.- See Also:
Socket.setReceiveBufferSize(int)
,DatagramSocket.setReceiveBufferSize(int)
-
setSoSendBufferSize
void setSoSendBufferSize(int soSendBufferSize)- Parameters:
soSendBufferSize
- The send buffer size.- See Also:
Socket.setSendBufferSize(int)
,DatagramSocket.setSendBufferSize(int)
-
setLocalAddress
On a multi-homed system, specifies the ip address of the network interface used to communicate. For inbound adapters and gateways, specifies the interface used to listed for incoming connections. If omitted, the endpoint will listen on all available adapters. For the UDP multicast outbound adapter specifies the interface to which multicast packets will be sent. For UDP unicast and multicast adapters, specifies which interface to which the acknowledgment socket will be bound. Does not apply to TCP outbound adapters and gateways.- Parameters:
localAddress
- The local address.
-