예제 #1
0
            /// <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);
            }
예제 #2
0
 public RecvPacketEvent(Session session, Packet packet)
 {
     this.type = Type.RecvPacket;
     this.session = session;
     this.packet = packet;
 }
예제 #3
0
 /// <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);
 }
예제 #4
0
 public void OnABC(Session session, Packet packet)
 {
 }