Correctly retrieve the type of the socket On mips, `SOCK_STREAM` and `SOCK_DGRAM` have different values than on x86_64. Modify `getSockType` to use functions from the Network library to retrieve the type of the socket, instead of relying on hard-coded values.