C# Class SimPlaza.UDProxy.SOCKS5.SOCKS5Server

Datei anzeigen Open project: Gnu32/UDProxy Class Usage Examples

Public Properties

Property Type Description
MyClient System.Net.IPEndPoint
State SOCKS5States

Public Methods

Method Description
DebugError ( string msg ) : void
DebugInfo ( string msg ) : void
DebugWarn ( string msg ) : void
Process ( MemoryStream stream, NetworkStream connection ) : bool

Processes bytes received from client

Respond ( IPacket packet, NetworkStream connection ) : bool

Writes a given packet to the client

SOCKS5Server ( IPEndPoint client ) : System

Method Details

DebugError() public static method

public static DebugError ( string msg ) : void
msg string
return void

DebugInfo() public static method

public static DebugInfo ( string msg ) : void
msg string
return void

DebugWarn() public static method

public static DebugWarn ( string msg ) : void
msg string
return void

Process() public method

Processes bytes received from client
public Process ( MemoryStream stream, NetworkStream connection ) : bool
stream System.IO.MemoryStream
connection NetworkStream
return bool

Respond() public method

Writes a given packet to the client
public Respond ( IPacket packet, NetworkStream connection ) : bool
packet IPacket IPacket packet
connection NetworkStream
return bool

SOCKS5Server() public method

public SOCKS5Server ( IPEndPoint client ) : System
client System.Net.IPEndPoint
return System

Property Details

MyClient public_oe property

public IPEndPoint,System.Net MyClient
return System.Net.IPEndPoint

State public_oe property

public SOCKS5States State
return SOCKS5States