org.jacorb.orb.factory

Interface SocketFactory

public interface SocketFactory

Version: $Id: SocketFactory.java,v 1.8 2006/07/26 09:16:58 alphonse.bendt Exp $

Author: Gerald Brose

Method Summary
SocketcreateSocket(String host, int port)
create a connected stream Socket.
SocketcreateSocket(String host, int port, int timeout)
create a connected stream Socket.
booleanisSSL(Socket socket)

Method Detail

createSocket

public Socket createSocket(String host, int port)
create a connected stream Socket.

Parameters: host the host name port the port number

Returns: a connected stream Socket

Throws: IOException

createSocket

public Socket createSocket(String host, int port, int timeout)
create a connected stream Socket.

Parameters: host the host name port the port number timeout the timeout value to be used in milliseconds

Returns: a connected stream Socket

Throws: IOException

isSSL

public boolean isSSL(Socket socket)

Returns: true if the specified socket supports SSL.