For some more context the argument-less version of `newSocket` defaults to a TCP socket: <https://nim-lang.org/docs/net.html#newSocket%2CDomain%2CSockType%2CProtocol>
As an aside though that array looks wrong. You define it to be 12 integers long, aka 12*8 on a 64 bit machine, but you only specify 8 bit values. You probably want to define the array over the `uint8` type and use `0x00'u8` as the first digit to make type inference work.