# Generated by h2py from /boot/develop/headers/be/net/socket.h

# Included from size_t.h

# Included from ansi_parms.h
def __std(ref): return  ref

def __std(ref): return ref

__undef_os = 0
__mac_os = 1
__be_os = 2
__win32_os = 3
__powertv_os = 4
__dest_os = __be_os

# Included from sys/time.h
AF_INET = 1
INADDR_ANY = 0x00000000
INADDR_BROADCAST = 0xffffffff
INADDR_LOOPBACK = 0x7f000001
SOL_SOCKET = 1
SO_DEBUG = 1
SO_REUSEADDR = 2
SO_NONBLOCK = 3
MSG_OOB = 0x1
SOCK_DGRAM = 1
SOCK_STREAM = 2
IPPROTO_UDP = 1
IPPROTO_TCP = 2
IPPROTO_ICMP = 3
B_UDP_MAX_SIZE = (65536 - 1024)
def ntohs(x): return x

def htons(x): return x

def htonl(x): return x

def ntohl(x): return x

FDSETSIZE = 256
NFDBITS = 32
def _FDMSKNO(fd): return ((fd) / NFDBITS)

def _FDBITNO(fd): return ((fd) % NFDBITS)

