Jump to content

  • Log In with Google      Sign In   
  • Create Account

#ActualMussi

Posted 02 February 2013 - 06:41 AM

You can store a unique IPv4 address and port combination in a single 64 bit integer:
__int64 id = __int64(ip) << 16 | port;

#2Mussi

Posted 02 February 2013 - 06:41 AM

You can store a unique IPv4 address and port combination in a single 64 bit integer:
__int64 id = __int64(ip) &lt;&lt; 16 | port;

#1Mussi

Posted 02 February 2013 - 06:40 AM

You can store a unique IPv4 address and port combination in a single 64 bit integer:<pre class="_prettyXprint _lang-auto _linenums:0">__int64 id = __int64(ip) &lt;&lt; 16 | port;</pre>

PARTNERS