public class ChannelUtil extends Object
| Constructor and Description |
|---|
ChannelUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAddressFromChannel(io.netty.channel.Channel channel)
get address from channel
|
static String |
getClientIpFromChannel(io.netty.channel.Channel channel)
get client ip from channel
|
static Integer |
getClientPortFromChannel(io.netty.channel.Channel channel)
get client port from channel
|
public static String getAddressFromChannel(io.netty.channel.Channel channel)
channel - the channelpublic static String getClientIpFromChannel(io.netty.channel.Channel channel)
channel - the channelpublic static Integer getClientPortFromChannel(io.netty.channel.Channel channel)
channel - the channelCopyright © 2023 Seata. All rights reserved.