Interface SocketFactory

All Known Implementing Classes:
DefaultSocketFactory, SecureSocketFactory

public interface SocketFactory
Client Socket Factory Interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String host, int port)
    Create client socket.
  • Method Details

    • create

      Socket create(String host, int port) throws IOException
      Create client socket.
      Parameters:
      host - host
      port - port
      Returns:
      client socket
      Throws:
      IOException - IO exception