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

Function writeSockAddrIn

source/kernel/knativesocket.cpp:905–909  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

903}
904
905static void writeSockAddrIn(struct sockaddr_in* addr, KMemory* memory, U32 address) {
906 memory->writew(address, AF_INET);
907 memory->memcpy(address+2, &addr->sin_port, 2);
908 memory->memcpy(address+4, &addr->sin_addr, 4);
909}
910
911U32 KNativeSocketObject::bind(KThread* thread, const KFileDescriptorPtr& fd, U32 address, U32 len) {
912 KMemory* memory = thread->memory;

Callers 5

acceptMethod · 0.85
getsocknameMethod · 0.85
getpeernameMethod · 0.85
recvmsgMethod · 0.85
recvfromMethod · 0.85

Calls 2

memcpyMethod · 0.80
writewMethod · 0.45

Tested by

no test coverage detected