Package com.sun.star.connection

Examples of com.sun.star.connection.XConnectionBroadcaster


          System.err.println("waiting for connect [" + conDcp + "#" + connect_count + "]...");
          xConnection = xAcceptor.accept(conDcp);
          if(xConnection == null)
            break;

          XConnectionBroadcaster broadcaster = (XConnectionBroadcaster)
            UnoRuntime.queryInterface(
              XConnectionBroadcaster.class, xConnection );
          if( broadcaster != null )
            broadcaster.addStreamListener(
              new ConnectionListener( holder ) );
             
          // create the bridge
          XBridge xBridge = xBridgeFactory.createBridge(conDcp + ";" + protDcp + "#" + (connect_count ++), protDcp, xConnection, new InstanceProvider(rootOid, object));
        }
View Full Code Here


          System.err.println("waiting for connect [" + conDcp + "#" + connect_count + "]...");
          xConnection = xAcceptor.accept(conDcp);
          if(xConnection == null)
            break;

          XConnectionBroadcaster broadcaster = (XConnectionBroadcaster)
            UnoRuntime.queryInterface(
              XConnectionBroadcaster.class, xConnection );
          if( broadcaster != null )
            broadcaster.addStreamListener(
              new ConnectionListener( holder ) );
             
          // create the bridge
          XBridge xBridge = xBridgeFactory.createBridge(conDcp + ";" + protDcp + "#" + (connect_count ++), protDcp, xConnection, new InstanceProvider(rootOid, object));
        }
View Full Code Here

          System.err.println("waiting for connect [" + conDcp + "#" + connect_count + "]...");
          xConnection = xAcceptor.accept(conDcp);
          if(xConnection == null)
            break;

          XConnectionBroadcaster broadcaster = (XConnectionBroadcaster)
            UnoRuntime.queryInterface(
              XConnectionBroadcaster.class, xConnection );
          if( broadcaster != null )
            broadcaster.addStreamListener(
              new ConnectionListener( holder ) );
             
          // create the bridge
          XBridge xBridge = xBridgeFactory.createBridge(conDcp + ";" + protDcp + "#" + (connect_count ++), protDcp, xConnection, new InstanceProvider(rootOid, object));
        }
View Full Code Here

    public void run() {
      try {
        if(_xAcceptor != null) { // write what we read
          _xConnection = _xAcceptor.accept(_connectionDcp);
         
          XConnectionBroadcaster xConnectionBroadcaster = (XConnectionBroadcaster)UnoRuntime.queryInterface(XConnectionBroadcaster.class,
                                                            _xConnection);

          xConnectionBroadcaster.addStreamListener(this);

          byte block[] = readBlock();
          while(block.length > 0 && !_withError) {
            writeBlock(block);
            _xConnection.flush();

            block = readBlock();
          }

          _xAcceptor.stopAccepting();
        }
        else if(_xConnector != null) { // write random data and check
          _xConnection = _xConnector.connect(_connectionDcp);

          XConnectionBroadcaster xConnectionBroadcaster = (XConnectionBroadcaster)UnoRuntime.queryInterface(XConnectionBroadcaster.class,
                                                            _xConnection);

          xConnectionBroadcaster.addStreamListener(this);

          for(int i = 0; i < 10; ++ i) { // send 10 blocks
            writeBlock(_defBlock);
            _xConnection.flush();
View Full Code Here

          System.err.println("waiting for connect [" + conDcp + "#" + connect_count + "]...");
          xConnection = xAcceptor.accept(conDcp);
          if(xConnection == null)
            break;

          XConnectionBroadcaster broadcaster = (XConnectionBroadcaster)
            UnoRuntime.queryInterface(
              XConnectionBroadcaster.class, xConnection );
          if( broadcaster != null )
            broadcaster.addStreamListener(
              new ConnectionListener( holder ) );
             
          // create the bridge
          XBridge xBridge = xBridgeFactory.createBridge(conDcp + ";" + protDcp + "#" + (connect_count ++), protDcp, xConnection, new InstanceProvider(rootOid, object));
        }
View Full Code Here

          System.err.println("waiting for connect [" + conDcp + "#" + connect_count + "]...");
          xConnection = xAcceptor.accept(conDcp);
          if(xConnection == null)
            break;

          XConnectionBroadcaster broadcaster = (XConnectionBroadcaster)
            UnoRuntime.queryInterface(
              XConnectionBroadcaster.class, xConnection );
          if( broadcaster != null )
            broadcaster.addStreamListener(
              new ConnectionListener( holder ) );
             
          // create the bridge
          XBridge xBridge = xBridgeFactory.createBridge(conDcp + ";" + protDcp + "#" + (connect_count ++), protDcp, xConnection, new InstanceProvider(rootOid, object));
        }
View Full Code Here

TOP

Related Classes of com.sun.star.connection.XConnectionBroadcaster

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.