Home
last modified time | relevance | path

Searched refs:socktype (Results 1 – 3 of 3) sorted by relevance

/kernel/tests/net/test/
Dnet_test.py191 def CreateSocketPair(family, socktype, addr): argument
192 clientsock = socket(family, socktype, 0)
193 listensock = socket(family, socktype, 0)
196 if socktype == SOCK_STREAM:
199 if socktype == SOCK_STREAM:
Dbpf_test.py561 def checkSocketCreate(self, family, socktype, success): argument
563 sock = socket.socket(family, socktype, 0)
568 (family, socktype, os.strerror(e.errno)))
572 % (family, socktype))
576 for socktype in [socket.SOCK_DGRAM, socket.SOCK_STREAM]:
577 self.checkSocketCreate(family, socktype, success)
Dsock_diag_test.py105 def _CreateLotsOfSockets(socktype): argument
113 socketpair = net_test.CreateSocketPair(family, socktype, addr)
213 def CheckFindsAllMySockets(self, socktype, proto): argument
215 self.socketpairs = self._CreateLotsOfSockets(socktype)
1006 def CheckPermissions(self, socktype): argument
1007 s = socket(AF_INET6, socktype, 0)
1009 if socktype == SOCK_STREAM: