コード例 #1
0
 public override void Disposed(Beetle.Express.IServer server, Beetle.Express.ChannelEventArgs e)
 {         
     base.Disposed(server, e);
     User user = new User();
     user.Name = e.Channel.Name;
     user.ID = e.Channel.ID;
     user.Host = e.Channel.EndPoint.ToString();
     SendAll(null, "exit", user);
 }
コード例 #2
0
 public void OnLogin(Beetle.Express.IChannel channel, string id, string command, JToken token)
 {
     channel.Name = token["name"].ToString();
     User user = new User();
     user.Name = channel.Name;
     user.ID = channel.ID;
     user.Host = channel.EndPoint.ToString();
     SendAll(id, command, user);
 }