C# Class Pcap.PcapWriter

Inheritance: IDisposable
ファイルを表示 Open project: vf1/serversockets Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void
Flush ( ) : void
PcapWriter ( Stream stream ) : System
Write ( byte bytes, Protocol protocol, IPEndPoint source, IPEndPoint destination ) : void
Write ( byte bytes, int offset, int length, Protocol protocol, IPEndPoint source, IPEndPoint destination ) : void
WriteComment ( string comment ) : void

Private Methods

Method Description
CreateWritter ( ) : void
WriteChangesToStream ( ) : void
WriteEthernetHeader ( EtherType etherType ) : void
WriteGlobalHeader ( ) : void
WriteIpV4Header ( int length, bool tcpUdp, IPAddress source, IPAddress destination ) : void
WriteIpV6Header ( int length, bool tcpUdp, IPAddress source, IPAddress destination ) : void
WritePacketHeader ( int length ) : void
WriteTcpHeader ( int length, short sourcePort, short destinationPort ) : void
WriteTlsHeader ( int length ) : void
WriteUdpHeader ( int length, short sourcePort, short destinationPort ) : void

Method Details

Dispose() public method

public Dispose ( ) : void
return void

Flush() public method

public Flush ( ) : void
return void

PcapWriter() public method

public PcapWriter ( Stream stream ) : System
stream Stream
return System

Write() public method

public Write ( byte bytes, Protocol protocol, IPEndPoint source, IPEndPoint destination ) : void
bytes byte
protocol Protocol
source IPEndPoint
destination IPEndPoint
return void

Write() public method

public Write ( byte bytes, int offset, int length, Protocol protocol, IPEndPoint source, IPEndPoint destination ) : void
bytes byte
offset int
length int
protocol Protocol
source IPEndPoint
destination IPEndPoint
return void

WriteComment() public method

public WriteComment ( string comment ) : void
comment string
return void