Class ServerPipe
A ServerPipe wraps a socket connection to a server.
Inherited Members
Namespace: Fiddler
Assembly: FiddlerCore.dll
Syntax
public class ServerPipe : BasePipe
Fields
_bIsConnectedToGateway
Returns TRUE if this ServerPipe is connected to a Gateway
Declaration
protected bool _bIsConnectedToGateway
Field Value
System.
|
_sPoolKey
The Pooling key used for reusing a previously pooled ServerPipe. See sPoolKey property.
Declaration
protected string _sPoolKey
Field Value
System.
|
Properties
CertificateChainErrors
Stores a list of errors for each Element of the Certificate Chain First element in the list is the Server certificate and each following element follows the certificate chain (the last element should be the CA certificate)
Declaration
public List<List<X509ChainStatus>> CertificateChainErrors { get; set; }
Property Value
System.
|
ConnectSessionId
Gets the ID of the session containing the CONNECT client request for this connection
Declaration
public int ConnectSessionId { get; }
Property Value
System.
|
ConnectSessionTimers
Gets the session timers instance for the CONNECT client request session for this connection
Declaration
public SessionMetrics ConnectSessionTimers { get; }
Property Value
InitiatorSessionId
Gets the first recorded session for this connection
Declaration
public Nullable<int> InitiatorSessionId { get; }
Property Value
System.
|
isConnectedToGateway
Indicates if this pipe is connected to an upstream (non-SOCKS) Proxy.
Declaration
public bool isConnectedToGateway { get; }
Property Value
System.
|
isConnectedViaSOCKS
Indicates if this pipe is connected to a SOCKS gateway
Declaration
public bool isConnectedViaSOCKS { get; set; }
Property Value
System.
|
RemoteEndPoint
Returns the IPEndPoint to which this socket is connected, or null
Declaration
public IPEndPoint RemoteEndPoint { get; }
Property Value
System.
|
ReusePolicy
Policy for reuse of this pipe
Declaration
public PipeReusePolicy ReusePolicy { get; set; }
Property Value
ServerCertificate
If this is a "secure" HTTPS connection, returns the server's Certificate
Declaration
public X509Certificate2 ServerCertificate { get; }
Property Value
System.
|
ServerCertificatePolicyErrors
Returns the status of the SslPolicyErrors during the handshake. Should be SslPolicyErrors.None for valid certificates
Declaration
public Nullable<SslPolicyErrors> ServerCertificatePolicyErrors { get; set; }
Property Value
System.
|
sPoolKey
Gets and sets the pooling key for this server pipe.
Declaration
public string sPoolKey { get; }
Property Value
System.
|
Examples
direct->{http|https}/{serverhostname}:{serverport} gw:{gatewayaddr:port}->* gw:{gatewayaddr:port}->{http|https}/{serverhostname}:{serverport} socks:{gatewayaddr:port}->{http|https}/{serverhostname}:{serverport}
Methods
DescribeConnectionSecurity()
Return a string describing the HTTPS connection security, if this socket is secured
Declaration
public string DescribeConnectionSecurity()
Returns
System. A string describing the HTTPS connection's security. |
GetNextStreamId()
Calculates the next stream ID to use when sending a request through the server pipe
Declaration
public uint GetNextStreamId()
Returns
System. The new stream id |
GetSha256Thumbprint(X509Certificate2)
Computes the SHA256 thumbprint of a X509 certificate
Declaration
public static string GetSha256Thumbprint(X509Certificate2 cert)
Parameters
System.
|
Returns
System. SHA256 thumbprint |
ToString()
Returns a semicolon-delimited string describing this ServerPipe
Declaration
public override string ToString()
Returns
System. A semicolon-delimited string |