Class NioConnection.PeerAddressReader
java.lang.Object
org.jgroups.blocks.cs.NioConnection.PeerAddressReader
- Enclosing class:
NioConnection
Reads a peer address from a SocketChannel. Note that method
readPeerAddress(SocketChannel) is not reentrant- Since:
- 3.6.5
- Author:
- Bela Ban
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final ByteBufferprotected final byte[]protected static final intprotected static final intprotected static final intprotected NioConnection.PeerAddressReader.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intparseMetadata(SocketAddress local, SocketAddress remote) reset()
-
Field Details
-
METADATA_SIZE
protected static final int METADATA_SIZE- See Also:
-
IPV4_SIZE
protected static final int IPV4_SIZE- See Also:
-
IPv6_SIZE
protected static final int IPv6_SIZE- See Also:
-
buffer
-
state
-
cookie_buf
protected final byte[] cookie_buf
-
-
Constructor Details
-
PeerAddressReader
public PeerAddressReader() -
PeerAddressReader
public PeerAddressReader(boolean use_direct_memory)
-
-
Method Details
-
readPeerAddress
- Throws:
IOException
-
reset
-
parseMetadata
- Throws:
IOException
-