Package org.jacorb.orb.iiop

Examples of org.jacorb.orb.iiop.ServerIIOPConnection


    public void testInitGiop1_1() throws Exception
    {
        ServerSocket sSocket = new ServerSocket(4321);
        Socket socket = new Socket((String)null, 4321);

        ServerIIOPConnection serverIIOPConnection = new ServerIIOPConnection(socket, false, null);
        serverIIOPConnection.configure(((org.jacorb.orb.ORB)orb).getConfiguration());

        assertEquals(1, serverIIOPConnection.get_server_profile().version().minor);

        socket.close();
        sSocket.close();
    }
View Full Code Here


        // This is proprietary non-public API and specific to JacORB only.
        if (ri instanceof ServerRequestInfoImpl)
        {
            GIOPConnection connection = ((ServerRequestInfoImpl)ri).getConnection();
            // Retrieve the transport from the ServerRequest/GIOPConnection
            ServerIIOPConnection transport = (ServerIIOPConnection)connection.getTransport();
            // Get the socket from the IIOP layer
            Socket socket = transport.getSocket();

            ipAddr = socket.getInetAddress().getHostAddress();
        }
        // End
View Full Code Here

TOP

Related Classes of org.jacorb.orb.iiop.ServerIIOPConnection

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.