Added initWait() method that waits until a socket has opened while attempting to connect.
Added initWait() method that waits until a socket has opened while attempting to connect.

Signed-off-by: marc jakobi <9ca81c2aa4aa86256fc426d7d57eed586c9fd3ac@htw-berlin.de>

MrcJkb/tcpip4diac