-
-
Notifications
You must be signed in to change notification settings - Fork 980
Expand file tree
/
Copy pathIConnectionInfo.cs
More file actions
118 lines (102 loc) · 3.39 KB
/
IConnectionInfo.cs
File metadata and controls
118 lines (102 loc) · 3.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Extensions.Logging;
using Renci.SshNet.Common;
using Renci.SshNet.Messages.Connection;
namespace Renci.SshNet
{
/// <summary>
/// Represents remote connection information.
/// </summary>
internal interface IConnectionInfo
{
/// <summary>
/// Gets the logger factory for this connection.
/// </summary>
/// <value>
/// The logger factory for this connection. If <see langword="null"/> then <see cref="SshNetLoggingConfiguration.LoggerFactory"/> should be used.
/// </value>
public ILoggerFactory LoggerFactory { get; }
/// <summary>
/// Gets the timeout to used when waiting for a server to acknowledge closing a channel.
/// </summary>
/// <value>
/// The channel close timeout. The default value is 1 second.
/// </value>
/// <remarks>
/// If a server does not send a <c>SSH2_MSG_CHANNEL_CLOSE</c> message before the specified timeout
/// elapses, the channel will be closed immediately.
/// </remarks>
TimeSpan ChannelCloseTimeout { get; }
/// <summary>
/// Gets the supported channel requests for this connection.
/// </summary>
/// <value>
/// The supported channel requests for this connection.
/// </value>
IDictionary<string, RequestInfo> ChannelRequests { get; }
/// <summary>
/// Gets the character encoding.
/// </summary>
/// <value>
/// The character encoding.
/// </value>
Encoding Encoding { get; }
/// <summary>
/// Gets connection host.
/// </summary>
/// <value>
/// The connection host.
/// </value>
string Host { get; }
/// <summary>
/// Gets connection port.
/// </summary>
/// <value>
/// The connection port. The default value is 22.
/// </value>
int Port { get; }
/// <summary>
/// Gets proxy type.
/// </summary>
/// <value>
/// The type of the proxy.
/// </value>
ProxyTypes ProxyType { get; }
/// <summary>
/// Gets proxy connection host.
/// </summary>
string ProxyHost { get; }
/// <summary>
/// Gets proxy connection port.
/// </summary>
int ProxyPort { get; }
/// <summary>
/// Gets proxy connection username.
/// </summary>
string ProxyUsername { get; }
/// <summary>
/// Gets proxy connection password.
/// </summary>
string ProxyPassword { get; }
/// <summary>
/// Gets the number of retry attempts when session channel creation failed.
/// </summary>
/// <value>
/// The number of retry attempts when session channel creation failed.
/// </value>
int RetryAttempts { get; }
/// <summary>
/// Gets the connection timeout.
/// </summary>
/// <value>
/// The connection timeout. The default value is 30 seconds.
/// </value>
TimeSpan Timeout { get; }
/// <summary>
/// Occurs when authentication banner is sent by the server.
/// </summary>
event EventHandler<AuthenticationBannerEventArgs> AuthenticationBanner;
}
}