C# Class NRepeat.TcpProxy

Inheritance: IProxy
Afficher le fichier Open project: jeremychild/NRepeat

Méthodes publiques

Méthode Description
Start ( ) : void

Start the TCP Proxy

Stop ( ) : void

Stop the Proxy Server

TcpProxy ( ProxyDefinition definition ) : System
TcpProxy ( short port ) : System
TcpProxy ( short port, IPAddress ipAddress ) : System
TcpProxy ( short port, IPAddress ipAddress, int buffer ) : System

Private Methods

Méthode Description
AcceptConnections ( ) : Task

Accept Connections

ProxyClientConnection ( TcpClient client, int bufferSize ) : Task

Process the client with a predetermined buffer size

ProxyClientDataToServer ( TcpClient client, NetworkStream serverStream, NetworkStream clientStream, int bufferSize, CancellationToken cancellationToken ) : void

Send and receive data between the Client and Server

ProxyServerDataToClient ( NetworkStream serverStream, NetworkStream clientStream, int bufferSize, CancellationToken cancellationToken ) : void

Send and receive data between the Server and Client

Method Details

Start() public méthode

Start the TCP Proxy
public Start ( ) : void
Résultat void

Stop() public méthode

Stop the Proxy Server
public Stop ( ) : void
Résultat void

TcpProxy() public méthode

public TcpProxy ( ProxyDefinition definition ) : System
definition ProxyDefinition
Résultat System

TcpProxy() public méthode

public TcpProxy ( short port ) : System
port short
Résultat System

TcpProxy() public méthode

public TcpProxy ( short port, IPAddress ipAddress ) : System
port short
ipAddress System.Net.IPAddress
Résultat System

TcpProxy() public méthode

public TcpProxy ( short port, IPAddress ipAddress, int buffer ) : System
port short
ipAddress System.Net.IPAddress
buffer int
Résultat System