added example about how to open a socket. we have to deal with the timeout when the host is not responding because the JNI looks like is not handling the Exception thrown by the Socket constructor.