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

Function readSockAddrIn

source/kernel/knativesocket.cpp:899–903  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

897}
898
899static void readSockAddrIn(struct sockaddr_in* addr, KMemory* memory, U32 address) {
900 addr->sin_family = AF_INET;
901 memory->memcpy(&addr->sin_port, address+2, 2);
902 memory->memcpy(&addr->sin_addr, address+4, 4);
903}
904
905static void writeSockAddrIn(struct sockaddr_in* addr, KMemory* memory, U32 address) {
906 memory->writew(address, AF_INET);

Callers 6

bindMethod · 0.85
connectMethod · 0.85
acceptMethod · 0.85
sendmsgMethod · 0.85
sendtoMethod · 0.85
recvfromMethod · 0.85

Calls 1

memcpyMethod · 0.80

Tested by

no test coverage detected