update static IDs (cid/did/rid/pid) to use range from 0 to INT_MAX to avoid possible collision
fix warning
add limits (fix ios compilation)
allow faster connection with non blocking reliable sockets // add SO_KEEPALIVE