MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / syscall_connect

Function syscall_connect

source/kernel/syscall.cpp:1718–1723  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1716}
1717
1718U32 syscall_connect(CPU* cpu, U32 eipCount) {
1719 SYS_LOG1(SYSCALL_SOCKET, cpu, "connect socket=%d address=%X(%s) len=%d", ARG1, ARG2, socketAddressName(cpu->memory, ARG2, ARG3).c_str(), ARG3);
1720 U32 result = kconnect(cpu->thread, ARG1, ARG2, ARG3);
1721 SYS_LOG(SYSCALL_SOCKET, cpu, " result=%d(0x%X)\n", result, result);
1722 return result;
1723}
1724
1725U32 syscall_listen(CPU* cpu, U32 eipCount) {
1726 SYS_LOG1(SYSCALL_SOCKET, cpu, "listen socket=%d backlog=%d", ARG1, ARG2);

Callers

nothing calls this directly

Calls 3

socketAddressNameFunction · 0.85
kconnectFunction · 0.85
c_strMethod · 0.45

Tested by

no test coverage detected