C# Class Pcap.PcapWriter

Inheritance: IDisposable
Afficher le fichier Open project: vf1/serversockets Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

public Dispose ( ) : void
Résultat void

Flush() public méthode

public Flush ( ) : void
Résultat void

PcapWriter() public méthode

public PcapWriter ( Stream stream ) : System
stream Stream
Résultat System

Write() public méthode

public Write ( byte bytes, Protocol protocol, IPEndPoint source, IPEndPoint destination ) : void
bytes byte
protocol Protocol
source IPEndPoint
destination IPEndPoint
Résultat void

Write() public méthode

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
Résultat void

WriteComment() public méthode

public WriteComment ( string comment ) : void
comment string
Résultat void