Wow. Thats great. Thanks alot for help.

Regards! 😊


From: mww...@gmail.com
Date: Tue, 18 Feb 2014 14:55:59 -0300
Subject: Re: [pox-dev] Storing octets of IP addr in int variables
To: u_r_wel...@hotmail.com
CC: pox-dev@lists.noxrepo.org

I don't know any special function on POX to do that, but you could use native 
python methods. 

ip = '10.0.0.1' 
ip_list = ip.split('.') # split() method will split values into a list.


print ip_list


Cheers,
Marcus Sandri


2014-02-18 12:26 GMT-03:00 Rizwan Jamil <u_r_wel...@hotmail.com>:





Hi All!


I want to store the all four octets/bytes of an IP address into separate 
integer variables. Is there a way or a function to do this?






                                          



                                          

Reply via email to