/** 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; }
public boolean close() { try { channel.close(); } catch (Exception e) { // nothing to do } channel = null; return true; }
// --- basic methods --- // public boolean open() throws Exception { return channel.open(); }