class SocksConnecter extends TcpConnecter
{
    private enum Status
    {
        UNPLUGGED,
        WAITING_FOR_RECONNECT_TIME,
        WAITING_FOR_PROXY_CONNECTION,
        SENDING_GREETING,
        WAITING_FOR_CHOICE,
        SENDING_REQUEST,
        WAITING_FOR_RESPONSE
    }

    Status status;

    // String representation of endpoint to connect to
    String endpoint;

    public SocksConnecter(IOThread ioThread, SessionBase session, final Options options, final Address addr,
            final Address proxyAddr, boolean delayedStart)
    {
        super(ioThread, session, options, addr, delayedStart);
        assert (NetProtocol.tcp.equals(addr.protocol()));
        endpoint = proxyAddr.toString();
        this.status = Status.UNPLUGGED;
        throw new UnsupportedOperationException("Socks connecter is not implemented");
    }

    @Override
    protected void processPlug()
    {
        if (delayedStart) {
            startTimer();
        }
        else {
            initiateConnect();
        }
    }

    @Override
    protected void processTerm(int linger)
    {<FILL_FUNCTION_BODY>}

    @Override
    public void inEvent()
    {
        assert (status != Status.UNPLUGGED && status != Status.WAITING_FOR_RECONNECT_TIME);

        super.inEvent();
    }

    @Override
    public void outEvent()
    {
        super.outEvent();
    }

    @Override
    public void timerEvent(int id)
    {
        super.timerEvent(id);
    }

    //  Internal function to start the actual connection establishment.
    void initiateConnect()
    {
    }

    int processServerResponse()
    {
        return -1;
    }

    void parseAddress(String address, String hostname, int port)
    {
    }

    void connectToProxy()
    {
    }

    void error()
    {
    }

    //  Internal function to start reconnect timer
    void startTimer()
    {
    }

    //  Internal function to return a reconnect backoff delay.
    //  Will modify the current_reconnect_ivl used for next call
    //  Returns the currently used interval
    int getNewReconnectIvl()
    {
        return -1;
    }

    //  Open TCP connecting socket. Returns -1 in case of error,
    //  0 if connect was successfull immediately. Returns -1 with
    //  EAGAIN errno if async connect was launched.
    int open()
    {
        return -1;
    }

    //  Get the file descriptor of newly created connection. Returns
    //  retired_fd if the connection was unsuccessfull.
    void checkProxyConnection()
    {
    }
}

        switch (status) {
        case UNPLUGGED:
            break;
        case WAITING_FOR_RECONNECT_TIME:
            ioObject.cancelTimer(RECONNECT_TIMER_ID);
            break;
        case WAITING_FOR_PROXY_CONNECTION:
        case SENDING_GREETING:
        case WAITING_FOR_CHOICE:
        case SENDING_REQUEST:
        case WAITING_FOR_RESPONSE:
            close();
            break;

        default:
            break;
        }
        super.processTerm(linger);
    
<methods>public void <init>(zmq.io.IOThread, zmq.io.SessionBase, zmq.Options, zmq.io.net.Address, boolean) ,public void connectEvent() ,public void inEvent() ,public void outEvent() ,public void timerEvent(int) ,public java.lang.String toString() <variables>protected static final int RECONNECT_TIMER_ID,private final non-sealed zmq.io.net.Address addr,private int currentReconnectIvl,protected final non-sealed boolean delayedStart,private java.nio.channels.SocketChannel fd,private zmq.poll.Poller.Handle handle,protected final non-sealed zmq.io.IOObject ioObject,private final non-sealed zmq.io.SessionBase session,private final non-sealed zmq.SocketBase socket,private boolean timerStarted