The `ty` parameter should always be `libc::SOCK_STREAM`, so let's not take it as a parameter.