Exemplo n.º 1
0
 /**
  * Initializes all the attributes to necessary values.
  * Channels are created using the static factory in the
  * <code>ChannelServer</code> inteface.
  *
  * Constructor for One2OneConnectionImpl.
  */
 public Any2AnyConnectionImpl() : base()
 {
     chanToServer    = StandardChannelFactory.getDefaultInstance().createOne2One(new CSPBuffer(1));
     chanFromServer  = StandardChannelFactory.getDefaultInstance().createOne2One(new CSPBuffer(1));
     chanClientSynch = StandardChannelFactory.getDefaultInstance().createAny2One(new CSPBuffer(1));
     chanServerSynch = StandardChannelFactory.getDefaultInstance().createAny2One(new CSPBuffer(1));
 }
Exemplo n.º 2
0
 /**
  * Initializes all the attributes to necessary values.
  * Channels are created using the static factory in the
  * <code>ChannelServer</code> inteface.
  *
  * Constructor for One2OneConnectionImpl.
  */
 public Any2OneConnectionImpl() : base()
 {
     chanToServer   = StandardChannelFactory.getDefaultInstance().createOne2One(new CSPBuffer(1));
     chanFromServer = StandardChannelFactory.getDefaultInstance().createOne2One(new CSPBuffer(1));
     chanSynch      = StandardChannelFactory.getDefaultInstance().createAny2One(new CSPBuffer(1));
     //create the server object - client object created when accessed
     connectionServer = new AltingConnectionServerImpl(chanToServer.In(), chanToServer.In());
 }
 /**
  * All channels constructed with a Factory constructed with this
  * constructor will default to having no pre-installed filters.
  *
  */
 public FilteredChannelFactory()
 {
     factory = new StandardChannelFactory();
 }