Class QuicConnectionAddress
java.lang.Object
java.net.SocketAddress
io.netty.handler.codec.quic.QuicConnectionAddress
- All Implemented Interfaces:
Serializable
A
QuicConnectionAddress that can be used to connect too.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QuicConnectionAddressSpecialQuicConnectionAddressthat should be used when the connection address should be generated and chosen on the fly. -
Constructor Summary
ConstructorsConstructorDescriptionQuicConnectionAddress(byte[] connId) Create a new instanceQuicConnectionAddress(ByteBuffer connId) Create a new instance -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()static QuicConnectionAddressrandom()Return a random generatedQuicConnectionAddressof maximum size that can be used to connect aQuicChannelstatic QuicConnectionAddressrandom(int length) Return a random generatedQuicConnectionAddressof a given length that can be used to connect aQuicChanneltoString()
-
Field Details
-
EPHEMERAL
SpecialQuicConnectionAddressthat should be used when the connection address should be generated and chosen on the fly.
-
-
Constructor Details
-
QuicConnectionAddress
public QuicConnectionAddress(byte[] connId) Create a new instance- Parameters:
connId- the connection id to use.
-
QuicConnectionAddress
Create a new instance- Parameters:
connId- the connection id to use.
-
-
Method Details
-
toString
-
hashCode
-
equals
-
random
Return a random generatedQuicConnectionAddressof a given length that can be used to connect aQuicChannel- Parameters:
length- the length of theQuicConnectionAddressto generate.- Returns:
- the generated address.
-
random
Return a random generatedQuicConnectionAddressof maximum size that can be used to connect aQuicChannel- Returns:
- the generated address.
-