SercverSocket that only accepts one client
"이희승 (Trustin Lee)"
trustin at gmail.com
Wed May 4 02:54:15 EDT 2011
Close a server socket channel in channelOpen.
On 03/15/2011 12:05 AM, ieugen wrote:
> Hello,
>
> I'm new to netty and I'm having some problems. I am trying to make a FTP
> proxy and all that remains is to build the data connection that is needed to
> transfer files between client and server. This data connection just relays
> traffic between client and server.
>
> For what I have figured out so far, I need to create a ServerSocket
> connection that only accepts one client connection on the port the server is
> bound.
> How can I do this in netty?
>
> Belllow is an excerpt from ftp rfc:
> PASSIVE (PASV)
> This command requests the server-DTP to "listen" on a data
> port (which is not its default data port) and to wait for a
> connection rather than initiate one upon receipt of a
> transfer command. The response to this command includes the
> host and port address this server is listening on.
>
> In my app I intercept the server reply to PASV command. Once I have the
> reply i have to substitute the ip and port the Server is listening with a
> local address (localhost and localport).
> The client then connects to this address which will forward the trafic from
> one channel to another.
>
> But how do I create my server channel that does not accept client
> connections?
>
>
> --
> View this message in context: http://netty-forums-and-mailing-lists.685743.n2.nabble.com/SercverSocket-that-only-accepts-one-client-tp6169361p6169361.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
--
Trustin Lee, http://gleamynode.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 294 bytes
Desc: OpenPGP digital signature
Url : http://lists.jboss.org/pipermail/netty-users/attachments/20110504/97e7cd9c/attachment.bin
More information about the netty-users
mailing list