Example usage for java.net SocketImpl connect

List of usage examples for java.net SocketImpl connect

Introduction

In this page you can find the example usage for java.net SocketImpl connect.

Prototype

protected abstract void connect(SocketAddress address, int timeout) throws IOException;

Source Link

Document

Connects this socket to the specified port number on the specified host.

Usage

From source file:com.codename1.impl.android.AndroidImplementation.java

@Override
public Object connectSocket(String host, int port) {
    SocketImpl i = new SocketImpl();
    if (i.connect(host, port)) {
        return i;
    }//from w w w  . ja v  a 2s. co  m
    return null;
}