Class Transport.TCPIP
java.lang.Object
org.eclipse.jetty.io.Transport.Socket
org.eclipse.jetty.io.Transport.IP
org.eclipse.jetty.io.Transport.TCPIP
- All Implemented Interfaces:
Transport
- Enclosing interface:
Transport
The TCP/IP Transport.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Transport
Transport.IP, Transport.Socket, Transport.TCPIP, Transport.TCPUnix, Transport.UDPIP, Transport.UDPUnix, Transport.Unix, Transport.Wrapper -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionnewEndPoint(Scheduler scheduler, ManagedSelector selector, SelectableChannel selectable, SelectionKey selectionKey) ForTransports that are based on sockets, or forTransports that are layered on top of anotherTransportthat is based on sockets, this method is invoked to create a newEndPointthat wraps theSelectableChannelcreated byTransport.newSelectableChannel().ForTransports that are based on sockets, or forTransports that are layered on top of anotherTransportthat is based on sockets, this method is invoked to create a newSelectableChannelused for the socket communication.Methods inherited from class Transport.IP
requiresDomainNameResolutionMethods inherited from class Transport.Socket
connect, toStringMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Transport
equals, getSocketAddress, hashCode, isIntrinsicallySecure, newConnection
-
Constructor Details
-
TCPIP
protected TCPIP()
-
-
Method Details
-
newSelectableChannel
Description copied from interface:TransportFor
Transports that are based on sockets, or forTransports that are layered on top of anotherTransportthat is based on sockets, this method is invoked to create a newSelectableChannelused for the socket communication.- Returns:
- a new
SelectableChannelused for the socket communication, ornullif the communication does not use sockets. - Throws:
IOException- if theSelectableChannelcannot be created
-
newEndPoint
public EndPoint newEndPoint(Scheduler scheduler, ManagedSelector selector, SelectableChannel selectable, SelectionKey selectionKey) Description copied from interface:TransportFor
Transports that are based on sockets, or forTransports that are layered on top of anotherTransportthat is based on sockets, this method is invoked to create a newEndPointthat wraps theSelectableChannelcreated byTransport.newSelectableChannel().- Parameters:
scheduler- theSchedulerselector- theManagedSelectorselectable- theSelectableChannelselectionKey- theSelectionKey- Returns:
- a new
EndPoint
-