Use usigned short to cover full range of ports

 Each side of a TCP connection has an associated 16-bit unsigned port number (0-65535).  Use an unsigned short rather than a signed short otherwise you'll only get half the ports!