MCPcopy Create free account
hub / github.com/qilingframework/qiling / accept

Method accept

qiling/os/posix/filestruct.py:103–113  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

101 self.__socket.setsockopt(level, optname, value)
102
103 def accept(self):
104 try:
105 con, addr = self.__socket.accept()
106 except BlockingIOError:
107 # For support non-blocking sockets
108 addr = None
109 new_ql_socket = None
110 else:
111 new_ql_socket = ql_socket(con)
112
113 return new_ql_socket, addr
114
115 def recv(self, bufsize: int, flags: int) -> bytes:
116 return self.__socket.recv(bufsize, flags)

Callers 5

__init__Method · 0.80
ql_syscall_acceptFunction · 0.80
nvram_listenerMethod · 0.80
nvram_listenerFunction · 0.80
nvram_listenerFunction · 0.80

Calls 1

ql_socketClass · 0.85

Tested by 1

nvram_listenerMethod · 0.64