C# 클래스 apophis.SharpIRC.StarkSoftProxy.ProxyClientFactory

Factory class for creating new proxy client objects.
// create an instance of the client proxy factory ProxyClientFactory factory = new ProxyClientFactory(); // use the proxy client factory to generically specify the type of proxy to create // the proxy factory method CreateProxyClient returns an IProxyClient object IProxyClient proxy = factory.CreateProxyClient(ProxyType.Http, "localhost", 6588); // create a connection through the proxy to www.starksoft.com over port 80 System.Net.Sockets.TcpClient tcpClient = proxy.CreateConnection("www.starksoft.com", 80);
파일 보기 프로젝트 열기: FreeApophis/sharpIRC 1 사용 예제들

공개 메소드들

메소드 설명
CreateProxyClient ( ProxyType type ) : IProxyClient

Factory method for creating new proxy client objects.

CreateProxyClient ( ProxyType type, TcpClient tcpClient ) : IProxyClient

Factory method for creating new proxy client objects using an existing TcpClient connection object.

CreateProxyClient ( ProxyType type, TcpClient tcpClient, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword ) : IProxyClient

Factory method for creating new proxy client objects.

CreateProxyClient ( ProxyType type, string proxyHost, int proxyPort ) : IProxyClient

Factory method for creating new proxy client objects.

CreateProxyClient ( ProxyType type, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword ) : IProxyClient

Factory method for creating new proxy client objects.

메소드 상세

CreateProxyClient() 공개 메소드

Factory method for creating new proxy client objects.
public CreateProxyClient ( ProxyType type ) : IProxyClient
type ProxyType The type of proxy client to create.
리턴 IProxyClient

CreateProxyClient() 공개 메소드

Factory method for creating new proxy client objects using an existing TcpClient connection object.
public CreateProxyClient ( ProxyType type, TcpClient tcpClient ) : IProxyClient
type ProxyType The type of proxy client to create.
tcpClient System.Net.Sockets.TcpClient Open TcpClient object.
리턴 IProxyClient

CreateProxyClient() 공개 메소드

Factory method for creating new proxy client objects.
public CreateProxyClient ( ProxyType type, TcpClient tcpClient, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword ) : IProxyClient
type ProxyType The type of proxy client to create.
tcpClient System.Net.Sockets.TcpClient Open TcpClient object.
proxyHost string The proxy host or IP address.
proxyPort int The proxy port number.
proxyUsername string The proxy username. This parameter is only used by Socks4 and Socks5 proxy objects.
proxyPassword string The proxy user password. This parameter is only used Socks5 proxy objects.
리턴 IProxyClient

CreateProxyClient() 공개 메소드

Factory method for creating new proxy client objects.
public CreateProxyClient ( ProxyType type, string proxyHost, int proxyPort ) : IProxyClient
type ProxyType The type of proxy client to create.
proxyHost string The proxy host or IP address.
proxyPort int The proxy port number.
리턴 IProxyClient

CreateProxyClient() 공개 메소드

Factory method for creating new proxy client objects.
public CreateProxyClient ( ProxyType type, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword ) : IProxyClient
type ProxyType The type of proxy client to create.
proxyHost string The proxy host or IP address.
proxyPort int The proxy port number.
proxyUsername string The proxy username. This parameter is only used by Socks4 and Socks5 proxy objects.
proxyPassword string The proxy user password. This parameter is only used Socks5 proxy objects.
리턴 IProxyClient