@Implementation
  protected void connect() throws IOException {
    if (state == SocketState.CLOSED) {
      throw new IOException("socket closed");
    }
    state = SocketState.CONNECTED;
  }
@Implementation
  protected void connect() throws IOException {
    if (state == SocketState.CLOSED) {
      throw new IOException("socket closed");
    }
    state = SocketState.CONNECTED;
  }
@ Implementation protected void connect ( ) throws IOException { if ( state == SocketState . CLOSED ) { throw new IOException ( "socket closed" ) ; } state = SocketState . CONNECTED ; }
This method doesn't perform an actual connection and returns immediately
This method doesn t perform an actual connection and returns immediately