public final class QuicConnectionAddress
extends java.net.SocketAddress
QuicConnectionAddress
that can be used to connect too.Modifier and Type | Field and Description |
---|---|
static QuicConnectionAddress |
EPHEMERAL
Special
QuicConnectionAddress that should be used when the connection address should be generated
and chosen on the fly. |
Constructor and Description |
---|
QuicConnectionAddress(byte[] connId)
Create a new instance
|
QuicConnectionAddress(java.nio.ByteBuffer connId)
Create a new instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
static QuicConnectionAddress |
random()
Return a random generated
QuicConnectionAddress of maximum size
that can be used to connect a QuicChannel |
static QuicConnectionAddress |
random(int length)
Return a random generated
QuicConnectionAddress of a given length
that can be used to connect a QuicChannel |
java.lang.String |
toString() |
public static final QuicConnectionAddress EPHEMERAL
QuicConnectionAddress
that should be used when the connection address should be generated
and chosen on the fly.public QuicConnectionAddress(byte[] connId)
connId
- the connection id to use.public QuicConnectionAddress(java.nio.ByteBuffer connId)
connId
- the connection id to use.public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public static QuicConnectionAddress random(int length)
QuicConnectionAddress
of a given length
that can be used to connect a QuicChannel
length
- the length of the QuicConnectionAddress
to generate.public static QuicConnectionAddress random()
QuicConnectionAddress
of maximum size
that can be used to connect a QuicChannel
Copyright © 2020-2024 The Netty Project. All Rights Reserved.