The ProxySocket type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| ProxySocket()()()() |
Initializes an empty instance of the ProxySocket class.
| |
| ProxySocket(Socket) |
Initializes a new instance of the ProxySocket class based on the specified socket.
| |
| ProxySocket(Proxy) |
Initializes a new instance of ProxySocket class with parameters provided in the supplied Proxy object.
|
Methods
| Name | Description | |
|---|---|---|
| Accept |
Accepts an incoming connection.
| |
| BeginAccept |
Begins an asynchronous request to accept an incoming connection.
| |
| BeginConnect(EndPoint, AsyncCallback, Object) |
Begins an asynchronous request for a connection to a network device.
| |
| BeginConnect(String, Int32, AsyncCallback, Object) |
Begins an asynchronous request for a connection to a network device.
| |
| BeginListen |
Starts an asynchronously request to listen for an incoming connection using the specified control socket as a base.
| |
| BeginReceive |
Begins to asynchronously receive data from a connected ProxySocket.
| |
| BeginSend |
Sends data asynchronously to a connected ProxySocket.
| |
| Close |
Forces the ProxySocket connection to close.
| |
| Connect(EndPoint) |
Establishes a connection to a remote device.
| |
| Connect(String, Int32) |
Establishes a connection to a remote device.
| |
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
| EndAccept |
Ends an asynchronous request to accept an incoming connection.
| |
| EndConnect |
Ends a pending asynchronous connection request.
| |
| EndListen |
Ends an asynchronous request to listen for an incoming connection.
| |
| EndReceive |
Ends a pending asynchronous read.
| |
| EndSend |
Ends a pending asynchronous send.
| |
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
| GetAddressBytes | Obsolete. | |
| GetAddressLong | Obsolete. | |
| GetConnectionState |
Gets a value that indicates whether the ProxySocket is currently connected to a remote host.
| |
| GetHashCode | Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table. (Inherited from Object.) | |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| IsValidHost |
Checks whether the host address is a valid hostname or IP address.
| |
| Listen |
Starts a request to listen for an incoming connection using the specified control socket as a base.
| |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
| Poll |
Determines the status of the socket.
| |
| Receive(array<Byte>[]()[][]) |
Receives data from a connected ProxySocket.
| |
| Receive(array<Byte>[]()[][], SocketFlags) |
Receives data from a connected ProxySocket using the supplied flags.
| |
| Receive(array<Byte>[]()[][], Int32, Int32) |
Receives the specified amount of data from a connected ProxySocket into a specific location of the receive buffer and using the supplied flags.
| |
| Receive(array<Byte>[]()[][], Int32, SocketFlags) |
Receives the specified amount of data from a connected ProxySocket using the supplied flags.
| |
| Receive(array<Byte>[]()[][], Int32, Int32, SocketFlags) |
Receives the specified amount of data from a connected ProxySocket into a specific location of the receive buffer and using the supplied flags.
| |
| Send(array<Byte>[]()[][]) |
Sends data to a connected ProxySocket.
| |
| Send(array<Byte>[]()[][], SocketFlags) |
Sends data to a connected ProxySocket using the supplied flags.
| |
| Send(array<Byte>[]()[][], Int32, Int32) |
Sends the specified amount of data to a connected ProxySocket starting at the indicated location in the data and using the supplied flags.
| |
| Send(array<Byte>[]()[][], Int32, SocketFlags) |
Sends the specified amount of data to a connected ProxySocket using the supplied flags.
| |
| Send(array<Byte>[]()[][], Int32, Int32, SocketFlags) |
Sends the specified amount of data to a connected ProxySocket starting at the indicated location in the data and using the supplied flags.
| |
| Shutdown |
Disables sends and receives on the ProxySocket.
| |
| ToEndPoint(IPHostEntry, Int32) |
Chooses the most appropriate IP endpoint to use from the host entry.
| |
| ToEndPoint(String, Int32) |
Converts the host address and port into an IP endpoint. If the host address is not an IP address, returns null.
| |
| ToString | Returns a String that represents the current Object. (Inherited from Object.) |
Properties
| Name | Description | |
|---|---|---|
| AuthenticationMethod |
Gets the authentication method to use for HTTP CONNECT proxy.
NTLM authentication is only supported by some HTTP CONNECT proxies.
| |
| Available |
Gets the amount of data that has been received from the network and is available to be read.
| |
| Connected |
Gets a value that indicates whether the ProxySocket is connected to a remote host as of the last Send or Receive operation.
| |
| Domain |
Gets the domain to submit to the proxy server for authentication.
| |
| Handle |
Gets the operating system handle for the inner Socket.
| |
| Information |
Gets socket information on the underlying socket object.
| |
| LocalEndPoint |
Gets the local endpoint.
| |
| LocalPortRange |
Gets the local TCP port range to which to bind the connections.
| |
| Password |
Gets the username to submit to the proxy server for authentication.
Password authentication is not supported by SOCKS4 and SOCKS4a.
| |
| ProxyHost |
Gets the hostname of the proxy server.
| |
| ProxyPort |
Gets the port of the proxy server.
| |
| ProxyType |
Gets the type of the proxy server.
| |
| RemoteEndPoint |
Gets the remote endpoint.
| |
| Socket |
Gets the internal Socket value.
| |
| Timeout |
Gets or sets the length of time in milliseconds before the operation times out
(specify -1 or 0 to indicate that the request does not time out which is default).
| |
| UserName |
Gets the username to submit to the proxy server for authentication.
|
Explicit Interface Implementations
| Name | Description | |
|---|---|---|
| ISocketExt..::..Factory |