# Path: stator/lib.py

# 
# Path: stator/util.py
# def convert_ip(host):
#     match = IP_ADDRESS_RE.match(host)
#     if not match:
#         raise ValueError(
#             "Ip address string required, got {!r}".format(host))
#     parts = list(map(int, match.groups()))
#     if any(p > 255 for p in parts):
#         raise ValueError(
#             "Ip address string required, got {!r}".format(host))
#     return (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]


from ctypes import c_uint64, c_uint32, c_uint16, c_size_t, c_char_p
from ctypes import POINTER, Structure
from .lib import dll
from .util import convert_ip



class Item(Structure):
    _fields_ = [
        ('data', c_char_p),
        ('len', c_size_t),

# Path: stator/lib.py

# 
# Path: stator/util.py
# def convert_ip(host):
#     match = IP_ADDRESS_RE.match(host)
#     if not match:
#         raise ValueError(
#             "Ip address string required, got {!r}".format(host))
#     parts = list(map(int, match.groups()))
#     if any(p > 255 for p in parts):
#         raise ValueError(
#             "Ip address string required, got {!r}".format(host))
#     return (parts[0] << 24) | (parts[1] << 16) | (parts[2] << 8) | parts[3]


# Path: stator/redis.py
from ctypes import c_uint64, c_uint32, c_uint16, c_size_t, c_char_p
from ctypes import POINTER, Structure
from .lib import dll
from .util import convert_ip




class Item(Structure):
    _fields_ = [
        ('data', c_char_p),
        ('len', c_size_t),

    ]