public class FtpSessionReference extends Object
InetAddress
of the remote client and the InetSocketAddress
of
the server for Passive and
reverse for Active connections. This is particularly useful for Passive mode
connection since there is no
way to pass the session to the connected channel without this reference.Modifier and Type | Class and Description |
---|---|
static class |
FtpSessionReference.P2PAddress
Index of FtpSession References
|
Constructor and Description |
---|
FtpSessionReference()
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
delFtpSession(io.netty.channel.Channel channel)
Remove one FtpSession if possible
|
void |
delFtpSession(InetAddress ipOnly,
InetSocketAddress fullIp)
Remove the FtpSession from couple of addresses
|
FtpSession |
findPassive(io.netty.channel.Channel channel) |
FtpSession |
getPassiveFtpSession(io.netty.channel.Channel channel)
Return and remove the FtpSession
|
int |
sessionsNumber() |
void |
setNewFtpSession(InetAddress ipOnly,
InetSocketAddress fullIp,
FtpSession session)
Add a session from a couple of addresses
|
public final void setNewFtpSession(InetAddress ipOnly, InetSocketAddress fullIp, FtpSession session)
ipOnly
- fullIp
- session
- public final FtpSession getPassiveFtpSession(io.netty.channel.Channel channel)
channel
- public final FtpSession findPassive(io.netty.channel.Channel channel)
channel
- public final void delFtpSession(io.netty.channel.Channel channel)
channel
- public final void delFtpSession(InetAddress ipOnly, InetSocketAddress fullIp)
ipOnly
- fullIp
- public final int sessionsNumber()
Copyright © 2009–2022 Waarp. All rights reserved.