crossport from original project:

added increased socket timeout
added setter and getters for _maxConnections and _maxIncoming connections to sl::Peer
use setMaxConnections(x) to limit the max connections on the server peer