Converting ip addr, port to unsigned Network Byte Order

DaBeef DerrickHaller at gmail.com
Wed Nov 2 13:54:51 EST 2005


I have an IP adress and a port # and I needed them in Network Byte
Order.
Socket.connect ((  ipAddr , portNumber) - how would you do this with
python, I am unsure of exactly how python data is stored.  I know the
bits must be equal to an unsigend int.  HOw would you do this in
Python??
Thanks for your help




More information about the Python-list mailing list