Package com.google.dataconnector.protocol

Examples of com.google.dataconnector.protocol.InputStreamConnector


        socket.connect(new InetSocketAddress(localHostAddress, localConf.getSocksServerPort()));

        final ConnectionRemover connectionRemoverCallback = new ConnectionRemover();

        // TODO(rayc) Create a pool of connectors instead of making a new instance each time.
        final InputStreamConnector inputStreamConnector =
            injector.getInstance(InputStreamConnector.class);
        inputStreamConnector.setConnectionId(connectionId);
        inputStreamConnector.setInputStream(socket.getInputStream());
        inputStreamConnector.setFrameSender(frameSender);
        inputStreamConnector.setConnectorStateCallback(connectionRemoverCallback);
        inputStreamConnector.setName("Inputconnector-" + connectionId);

        // TODO(rayc) Create a pool of connectors instead of making a new instance each time.
        final OutputStreamConnector outputStreamConnector =
            injector.getInstance(OutputStreamConnector.class);
        outputStreamConnector.setConnectionId(connectionId);
View Full Code Here

TOP

Related Classes of com.google.dataconnector.protocol.InputStreamConnector

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.