Code example for Socket

Methods: bind

0
            throws IOException { 
        s.connect(endpoint, timeout);
    } 
 
    public void bind(SocketAddress bindpoint) throws IOException {
        s.bind(bindpoint);
    } 
 
    public InetAddress getInetAddress() {
        return s.getInetAddress();
    } 
 
    public InetAddress getLocalAddress() {
        return s.getLocalAddress();
    } 
 
    public int getPort() { 
        return s.getPort();
    } 
 
    public int getLocalPort() {