/// <summary> /// 지정된 채널 경로에 패킷을 브로드캐스팅한다. /// [Non-Thread-Safe] /// </summary> /// <param name="path">채널 경로</param> /// <param name="packet">패킷</param> public void Broadcast(Channel.Path path, Packet packet) { packet.channel = path.path; foreach(var session in Query(path)) session.Send(packet); }
public RecvPacketEvent(Session session, Packet packet) { this.type = Type.RecvPacket; this.session = session; this.packet = packet; }
/// <summary> /// 지정된 채널 경로에 패킷을 브로드캐스팅한다. /// [Non-Thread-Safe] /// </summary> /// <param name="path">채널 경로</param> /// <param name="packet">패킷</param> public void Broadcast(String path, Packet packet) { Broadcast(new Channel.Path(path), packet); }
public void OnABC(Session session, Packet packet) { }