Exemplo n.º 1
0
  /** Send a Msg to Channel */
  public boolean sendMessage(Msg msg) throws Exception {
    if (null == channel) throw new Exception("Channel is null, has one channel been opened ?");

    if (msg.getChannel() == null) msg.setChannel(this);

    channel.sendMessage((MsgMsrp) msg);

    return true;
  }
Exemplo n.º 2
0
 public boolean close() {
   try {
     channel.close();
   } catch (Exception e) {
     // nothing to do
   }
   channel = null;
   return true;
 }
Exemplo n.º 3
0
 // --- basic methods --- //
 public boolean open() throws Exception {
   return channel.open();
 }