portToString

private fnconst(char) * portToString(ushort port, scope char[] buffer) @trusted nothrow

Convert a port number to a null-terminated string.

Parameters

portPort number.
bufferDestination buffer.

Returns

Pointer to the null-terminated string, or null on failure.