public override void erlReceive(Connect connect, ErlKVMessageClient message) { //this.readMessage (message); Log.Info(message.Cmd+"|"+ message.toJsonString()); if (messagePort == message.getPort()) { String strValue = ConfigHelper.GetAppConfig ("/yxzh/role/get_user"); ErlKVMessage msg = new ErlKVMessage ("r_ok"); msg.addValue (null, new ErlInt (message.getPort ())); ErlType[] et = StringKit.strToErlTypeArray (strValue); ErlArray ea = new ErlArray (et); msg.addValue ("msg", ea); base.send (this.erlConnect, msg); } if (message.Cmd == "/yxzh/role/get_user") { messagePort = message.getPort(); } }
public virtual void erlReceive(Connect connect, ErlKVMessageClient message) { }