C# Класс Pcap.PcapWriter

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

Flush() публичный Метод

public Flush ( ) : void
Результат void

PcapWriter() публичный Метод

public PcapWriter ( Stream stream ) : System
stream Stream
Результат System

Write() публичный Метод

public Write ( byte bytes, Protocol protocol, IPEndPoint source, IPEndPoint destination ) : void
bytes byte
protocol Protocol
source IPEndPoint
destination IPEndPoint
Результат void

Write() публичный Метод

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
Результат void

WriteComment() публичный Метод

public WriteComment ( string comment ) : void
comment string
Результат void