C# Class m.Http.Backend.WebSockets.FrameEncoder

Mostrar archivo Open project: joongonn/mHttp

Public Methods

Method Description
GetClosePayload ( uint statusCode, string reason ) : byte[]
Write ( Stream stream, OpCode opCode, bool masked = false, byte payload = null, int maxFrameSize = 128*1024 ) : int

Method Details

GetClosePayload() public static method

public static GetClosePayload ( uint statusCode, string reason ) : byte[]
statusCode uint
reason string
return byte[]

Write() public static method

public static Write ( Stream stream, OpCode opCode, bool masked = false, byte payload = null, int maxFrameSize = 128*1024 ) : int
stream Stream
opCode OpCode
masked bool
payload byte
maxFrameSize int
return int