Lines Matching refs:s
30 s = socket(AF_INET6, SOCK_DGRAM, 0)
31 s.bind(("::1", 0))
34 csocket.SetSocketTimeout(s, 2000)
37 self.assertRaisesErrno(ENOTCONN, s.shutdown, SHUT_RDWR)
45 data, addr = csocket.Recvfrom(s, 4096)
56 s = socket(AF_INET6, SOCK_DGRAM, 0)
59 s.setsockopt(SOL_SOCKET, option, 0)
60 minbuf = s.getsockopt(SOL_SOCKET, option)
65 s.setsockopt(SOL_SOCKET, force_option, val)
66 self.assertEquals(2 * val, s.getsockopt(SOL_SOCKET, option))
73 s.setsockopt(SOL_SOCKET, force_option, bogusval)
74 self.assertEquals(minbuf, s.getsockopt(SOL_SOCKET, option))