コード例 #1
0
ファイル: RawCapture.cs プロジェクト: quocthang0507/CSharp
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="LinkLayerType">
 /// A <see cref="LinkLayers"/>
 /// </param>
 /// <param name="Timeval">
 /// A <see cref="PosixTimeval"/>
 /// </param>
 /// <param name="Data">
 /// A <see cref="byte"/>
 /// </param>
 public RawCapture(LinkLayers LinkLayerType,
                   PosixTimeval Timeval,
                   byte[] Data)
 {
     this.LinkLayerType = LinkLayerType;
     this.Timeval       = Timeval;
     this.Data          = Data;
 }
コード例 #2
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="LinkLayerType">
 /// A <see cref="LinkLayers"/>
 /// </param>
 /// <param name="Timeval">
 /// A <see cref="PosixTimeval"/>
 /// </param>
 /// <param name="Data">
 /// A <see cref="byte"/>
 /// </param>
 public RawCapture(LinkLayers LinkLayerType,
                   PosixTimeval Timeval,
                   byte[] Data,
                   int?packetLength = null)
 {
     this.LinkLayerType = LinkLayerType;
     this.Timeval       = Timeval;
     this.Data          = Data;
     this.PacketLength  = packetLength ?? Data?.Length ?? 0;
 }
コード例 #3
0
 public Entry(SharpPcap.PosixTimeval timeval, PacketDotNet.Packet packet)
 {
     this.Timeval = timeval;
     this.Packet  = packet;
 }