pinging with timeouts and send()/recv()
added server prototype