This code example shows how to use the following methods:connect, isBound, isConnected
* A simple test designed to conduct a DTLS handshake with an external DTLS server.
* Please refer to GnuTLSSetup.txt or OpenSSLSetup.txt, and x509-*.pem files in this package for
* help configuring an external DTLS server.
public class DTLSClientTest
private static final SecureRandomsecureRandom = new SecureRandom();
public static void main(String args)
InetAddressaddress = InetAddress.getLocalHost();
int port = 5556;
TlsSession session = createSession(address, port);
MockDTLSClient client = new MockDTLSClient(session);