Did I find the right examples for you? yes no

All Samples(39)  |  Call(32)  |  Derive(0)  |  Import(7)
Convert a IPv4 address into a 32-bit integer.

@param ip: quad-dotted IPv4 address
@type ip: str
@return: network byte order 32-bit integer
@rtype: int

        def ip2long(ip):
    """
    Convert a IPv4 address into a 32-bit integer.
    
    @param ip: quad-dotted IPv4 address
    @type ip: str
    @return: network byte order 32-bit integer
    @rtype: int
    """
    ip_array = ip.split('.')
    ip_long = int(ip_array[0]) * 16777216 + int(ip_array[1]) * 65536 + int(ip_array[2]) * 256 + int(ip_array[3])
    return ip_long  
        


src/o/h/oh-mainline-HEAD/vendor/packages/pygeoip/pygeoip/__init__.py   oh-mainline(Download)
 
from . import const
from .util import ip2long
from .timezone import time_zone_by_country_and_region
 
        """
 
        ipnum = ip2long(addr)
 
        if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:

src/u/g/uguubot-HEAD/lib/pygeoip/__init__.py   uguubot(Download)
 
from . import const
from .util import ip2long
from .timezone import time_zone_by_country_and_region
 
        """
 
        ipnum = ip2long(addr)
 
        if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:

src/m/e/META-SHARE-HEAD/lib/python2.7/site-packages/pygeoip/__init__.py   META-SHARE(Download)
 
from . import const
from .util import ip2long
from .timezone import time_zone_by_country_and_region
 
        """
 
        ipnum = ip2long(addr)
 
        if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:

src/x/s/xsbs-HEAD/src/pyscripts/GeoIp/pygeoip/__init__.py   xsbs(Download)
 
from const import *
from util import ip2long
 
class GeoIPError(Exception):
        """
 
        ipnum = ip2long(addr)
 
        if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:

src/d/n/dnschina-HEAD/pygeoip/__init__.py   dnschina(Download)
 
from . import const
from .util import ip2long
from .timezone import time_zone_by_country_and_region
 
        """
 
        ipnum = ip2long(addr)
 
        if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:

src/a/n/Anomos-HEAD/Anomos/pygeoip/__init__.py   Anomos(Download)
 
from const import *
from util import ip2long
 
class GeoIPError(Exception):
        """
 
        ipnum = ip2long(addr)
 
        if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:

src/p/y/pygeoip-HEAD/pygeoip/__init__.py   pygeoip(Download)
 
from const import *
from util import ip2long
 
class GeoIPError(Exception):
        """
 
        ipnum = ip2long(addr)
 
        if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum:
        """
        try:
            ipnum = ip2long(addr)
 
            if not ipnum: