librelist archives

« back to archive

Please allow passing local_host and local_port to Kgio::TCPSocket.start()

Please allow passing local_host and local_port to Kgio::TCPSocket.start()

From:
Iñaki Baz Castillo
Date:
2012-04-10 @ 18:06
TCPSocket.new() accepts 4 parameters:

  new(remote_host, remote_port, local_host=nil, local_port=nil)

In my case I do need both local_host and local_port, but
Kgio::TCPSocket.start() only implements remote_host, remote_port
parameters.

Could you please add the remaining two parameters? :)

-- 
Iñaki Baz Castillo
<ibc@aliax.net>

Re: [kgio] Please allow passing local_host and local_port to Kgio::TCPSocket.start()

From:
Eric Wong
Date:
2012-04-10 @ 20:06
Iñaki Baz Castillo <ibc@aliax.net> wrote:
> Could you please add the remaining two parameters? :)

If you need it soon, can you send a patch (w/test cases)? :)

I'm busy with other things the next week or so.

Re: [kgio] Please allow passing local_host and local_port to Kgio::TCPSocket.start()

From:
Iñaki Baz Castillo
Date:
2012-04-10 @ 20:57
2012/4/10 Eric Wong <normalperson@yhbt.net>:
> Iñaki Baz Castillo <ibc@aliax.net> wrote:
>> Could you please add the remaining two parameters? :)
>
> If you need it soon, can you send a patch (w/test cases)? :)

Will try it tonight.

-- 
Iñaki Baz Castillo
<ibc@aliax.net>