Methods Summary |
---|
public java.net.ServerSocket | createServerSocket(java.lang.String type, int port)
if (! type.equals(ORBSocketFactory.IIOP_CLEAR_TEXT)) {
throw wrapper.defaultCreateServerSocketGivenNonIiopClearText( type ) ;
}
ServerSocket serverSocket;
if (orb.getORBData().acceptorSocketType().equals(ORBConstants.SOCKETCHANNEL)) {
ServerSocketChannel serverSocketChannel =
ServerSocketChannel.open();
serverSocket = serverSocketChannel.socket();
} else {
serverSocket = new ServerSocket();
}
serverSocket.bind(new InetSocketAddress(port));
return serverSocket;
|
public java.net.Socket | createSocket(com.sun.corba.se.spi.transport.SocketInfo socketInfo)
Socket socket;
if (orb.getORBData().acceptorSocketType().equals(ORBConstants.SOCKETCHANNEL)) {
InetSocketAddress address =
new InetSocketAddress(socketInfo.getHost(),
socketInfo.getPort());
SocketChannel socketChannel = SocketChannel.open(address);
socket = socketChannel.socket();
} else {
socket = new Socket(socketInfo.getHost(),
socketInfo.getPort());
}
// REVISIT - this is done in SocketOrChannelConnectionImpl
try {
socket.setTcpNoDelay(true);
} catch (Exception e) {
;
}
return socket;
|
public com.sun.corba.se.spi.transport.SocketInfo | getEndPointInfo(org.omg.CORBA.ORB orb, com.sun.corba.se.spi.ior.IOR ior, com.sun.corba.se.spi.transport.SocketInfo socketInfo)
IIOPProfileTemplate temp =
(IIOPProfileTemplate)ior.getProfile().getTaggedProfileTemplate() ;
IIOPAddress primary = temp.getPrimaryAddress() ;
return new EndPointInfoImpl(ORBSocketFactory.IIOP_CLEAR_TEXT,
primary.getPort(),
primary.getHost().toLowerCase());
|
public void | setORB(com.sun.corba.se.spi.orb.ORB orb)
this.orb = orb;
|