C# Class LoLPatcherProxy.SimpleProxy

Mostrar archivo Open project: PowerOfDark/LoLPatcherProxy Class Usage Examples

Public Properties

Property Type Description
ClientTask System.Threading.Tasks.Task
MainSocket Socket
Sockets Socket>>.List

Public Methods

Method Description
GetFakeResponse ( byte bytes ) : byte[]
GetFakeResponse ( string body ) : byte[]
GetFakeResponseHeaders ( Stream s ) : byte[]
SimpleProxy ( EndPoint local, string remote, int remotePort ) : System

Private Methods

Method Description
ClientToServerTask ( int id ) : void
Replace ( byte input, byte pattern, byte replacement ) : byte[]
ServerToClientTask ( int id ) : void

Method Details

GetFakeResponse() public static method

public static GetFakeResponse ( byte bytes ) : byte[]
bytes byte
return byte[]

GetFakeResponse() public static method

public static GetFakeResponse ( string body ) : byte[]
body string
return byte[]

GetFakeResponseHeaders() public static method

public static GetFakeResponseHeaders ( Stream s ) : byte[]
s Stream
return byte[]

SimpleProxy() public method

public SimpleProxy ( EndPoint local, string remote, int remotePort ) : System
local System.Net.EndPoint
remote string
remotePort int
return System

Property Details

ClientTask public_oe property

public Task,System.Threading.Tasks ClientTask
return System.Threading.Tasks.Task

MainSocket public_oe property

public Socket MainSocket
return Socket

Sockets public_oe property

public List> Sockets
return Socket>>.List