C# Class SMProxy.Log

显示文件 Open project: SirCmpwn/SMProxy

Private Properties

Property Type Description
FormatPacketName string

Public Methods

Method Description
AddSpaces ( string value ) : string
DumpArray ( byte array ) : string
DumpArrayPretty ( byte array ) : string
Log ( StreamWriter stream, SMProxy.ProxySettings settings ) : System
LogPacket ( IPacket packet, bool clientToServer ) : void
Write ( string p ) : void

Private Methods

Method Description
FormatPacketName ( string name ) : string

Method Details

AddSpaces() public static method

public static AddSpaces ( string value ) : string
value string
return string

DumpArray() public static method

public static DumpArray ( byte array ) : string
array byte
return string

DumpArrayPretty() public static method

public static DumpArrayPretty ( byte array ) : string
array byte
return string

Log() public method

public Log ( StreamWriter stream, SMProxy.ProxySettings settings ) : System
stream System.IO.StreamWriter
settings SMProxy.ProxySettings
return System

LogPacket() public method

public LogPacket ( IPacket packet, bool clientToServer ) : void
packet IPacket
clientToServer bool
return void

Write() public method

public Write ( string p ) : void
p string
return void