Outbound port on sockets

Steve Holden steve at holdenweb.com
Thu Sep 14 10:11:06 EDT 2006


billie wrote:
[...]
> The right format of a FTP PORT command is:
> 
> PORT x,x,x,x,y,z
> 
> ....where x(s) represents your IP address in dotted form and (x * y) the
> TCP port you bind.
That's actually x*256 + y - tou're makling a 16-bit unsigned integer 
from two bytes.

> For further informations you can check RFC959 or take a look at ftplib
> in standard module library. Also in twisted you can find a lot of
> useful code in the module protocols.ftp.
> 
regards
  Steve
-- 
Steve Holden       +44 150 684 7255  +1 800 494 3119
Holden Web LLC/Ltd          http://www.holdenweb.com
Skype: holdenweb       http://holdenweb.blogspot.com
Recent Ramblings     http://del.icio.us/steve.holden




More information about the Python-list mailing list