Esempio n. 1
0
 /// <summary>
 /// Write Data Packet
 /// </summary>
 /// <param name="data"></param>
 /// <param name="timestamp"></param>
 /// <returns></returns>
 public virtual PortSet <DefaultSubmitResponseType, Fault> WriteData(byte[] data, System.DateTime timestamp)
 {
     stream.StreamData body = new stream.StreamData(data, timestamp);
     stream.WriteData  op   = new stream.WriteData(body);
     this.PostUnknownType(op);
     return(op.ResponsePort);
 }
Esempio n. 2
0
 /// <summary>
 /// Initialization constructor
 /// </summary>
 /// <param name="streamData"></param>
 public BytePacket(stream.StreamData streamData)
 {
     this.Data       = streamData.Data;
     this.PacketTime = streamData.Timestamp;
     this.Sequence   = _autoSequence++;
 }