public ArtPollReplyPacket(ArtNetRecieveData data)
     : base(data)
 {
     
 }
示例#2
0
 public void StartRecieve()
 {
     try
     {
         EndPoint localPort = new IPEndPoint(IPAddress.Any, Port);
         ArtNetRecieveData recieveState = new ArtNetRecieveData();
         BeginReceiveFrom(recieveState.buffer, 0, recieveState.bufferSize, SocketFlags.None, ref localPort, new AsyncCallback(OnRecieve), recieveState);
     }
     catch (Exception ex)
     {
         OnUnhandledException(new ApplicationException("An error ocurred while trying to start recieving ArtNet.", ex));
     }
 }