Package connection

Source Code of connection.AbstractControlledServerSideConnector

package connection;


import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;

import bandwidth.network.ControlledSocket;

import common.connection.server.AbstractServerSideConnector;


public abstract class AbstractControlledServerSideConnector extends
    AbstractServerSideConnector
{
  protected AbstractControlledServerSideConnector(ServerSocket listener)
      throws IOException
  {
    super(listener);
  }

  protected Socket createConnectedSocket(String host, int port)
      throws UnknownHostException, IOException
  {
    return new ControlledSocket(host, port);
  }

}
TOP

Related Classes of connection.AbstractControlledServerSideConnector

TOP
Copyright © 2018 www.massapi.com. 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.