Lines Matching refs:s
96 s = ms / 1000
99 struct.pack("LL", s, us))
102 def VoidPointer(s): argument
103 return ctypes.cast(s.CPointer(), ctypes.c_void_p)
204 def Bind(s, to): argument
206 ret = libc.bind(s.fileno(), VoidPointer(to), len(to))
211 def Connect(s, to): argument
213 ret = libc.connect(s.fileno(), VoidPointer(to), len(to))
218 def Sendmsg(s, to, data, control, flags): argument
273 ret = libc.sendmsg(s.fileno(), msghdr, 0)
295 def Recvmsg(s, buflen, controllen, flags, addrlen=len(SockaddrStorage)): argument
325 ret = libc.recvmsg(s.fileno(), VoidPointer(msghdr), flags)
337 def Recvfrom(s, size, flags=0): argument
343 ret = libc.recvfrom(s.fileno(), buf, len(buf), flags,
355 def Setsockopt(s, level, optname, optval, optlen): argument
372 ret = libc.setsockopt(s.fileno(), level, optname, optval, optlen)