| 897 | } |
| 898 | |
| 899 | static 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 | |
| 905 | static void writeSockAddrIn(struct sockaddr_in* addr, KMemory* memory, U32 address) { |
| 906 | memory->writew(address, AF_INET); |