Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

BOOL PFTP::SendPORT ( const PIPSocket::Address addr,
WORD  port 
) [inherited]

Send the PORT command for a transfer.

Returns:
Boolean indicated PORT command was successful
Parameters:
addrAddress for PORT connection. IP address to connect back to
portPort number for PORT connection.

Definition at line 100 of file ftp.cxx.

References PIPSocket::Address::Byte1(), PIPSocket::Address::Byte2(), PIPSocket::Address::Byte3(), PIPSocket::Address::Byte4(), and PInternetProtocol::ExecuteCommand().

{
  PString str(PString::Printf,
              "%i,%i,%i,%i,%i,%i",
              addr.Byte1(),
              addr.Byte2(),
              addr.Byte3(),
              addr.Byte4(),
              port/256,
              port%256);
  return ExecuteCommand(PORT, str)/100 == 2;
}

Here is the call graph for this function:


Generated by  Doxygen 1.6.0   Back to index