Support loopback connections - local network connection between server & client on same machine Fixes: http://code.google.com/p/sockperf/issues/detail?id=40
Support loopback connections - local network connection between server & client on same machine
Fixes: http://code.google.com/p/sockperf/issues/detail?id=40

Now bind() on client socket will happen only if sockperf flag '--client_port' is specified for all socket types TCP, UDP UC + MC.
Until now client used to bind(ADDRANY:server_port) only for UDP sockets.

(not changed)
-	Loopback is disabled in socket by default. Need to use '--mc-loopback-enable' to allow MC loopback traffic (both server + client)
-	Default for '--client_port' is 0, which means don't bind.
-	Only TCP (SOCK_STREAM) calls connect() to server



shekkbuilder/sockperf,shekkbuilder/sockperf,shekkbuilder/sockperf,shekkbuilder/sockperf