MCPcopy Create free account
hub / github.com/Tencent/libco / co_accept

Function co_accept

co_hook_sys_call.cpp:238–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

236}
237
238int co_accept( int fd, struct sockaddr *addr, socklen_t *len )
239{
240 int cli = accept( fd,addr,len );
241 if( cli < 0 )
242 {
243 return cli;
244 }
245 alloc_by_fd( cli );
246 return cli;
247}
248int connect(int fd, const struct sockaddr *address, socklen_t address_len)
249{
250 HOOK_SYS_FUNC( connect );

Callers 1

accept_routineFunction · 0.85

Calls 1

alloc_by_fdFunction · 0.85

Tested by

no test coverage detected