Home
last modified time | relevance | path

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

/kernel/tests/net/test/
Dnet_test.py190 def CreateSocketPair(family, socktype, addr): argument
191 clientsock = socket(family, socktype, 0)
192 listensock = socket(family, socktype, 0)
195 if socktype == SOCK_STREAM:
198 if socktype == SOCK_STREAM:
Dbpf_test.py406 def checkSocketCreate(self, family, socktype, success): argument
408 sock = socket.socket(family, socktype, 0)
413 (family, socktype, os.strerror(e.errno)))
417 (family, socktype))
422 for socktype in [socket.SOCK_DGRAM, socket.SOCK_STREAM]:
423 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: