Lines Matching refs:ret
106 def MaybeRaiseSocketError(ret): argument
107 if ret < 0:
206 ret = libc.bind(s.fileno(), VoidPointer(to), len(to))
207 MaybeRaiseSocketError(ret)
208 return ret
213 ret = libc.connect(s.fileno(), VoidPointer(to), len(to))
214 MaybeRaiseSocketError(ret)
215 return ret
273 ret = libc.sendmsg(s.fileno(), msghdr, 0)
274 MaybeRaiseSocketError(ret)
276 return ret
325 ret = libc.recvmsg(s.fileno(), VoidPointer(msghdr), flags)
326 MaybeRaiseSocketError(ret)
328 data = buf.raw[:ret]
343 ret = libc.recvfrom(s.fileno(), buf, len(buf), flags,
345 MaybeRaiseSocketError(ret)
347 data = buf[:ret]
372 ret = libc.setsockopt(s.fileno(), level, optname, optval, optlen)
373 MaybeRaiseSocketError(ret)