forked from soshimozi/SocketServer
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
82 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
using System; | ||
using SocketService.Crypto; | ||
|
||
namespace SocketService.Net.Client | ||
{ | ||
public class ClientConnection : Connection | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the <see cref="ClientConnection"/> class. | ||
/// </summary> | ||
/// <param name="clientId">The client id.</param> | ||
public ClientConnection(Guid clientId) : base(clientId) | ||
{ | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets the remote public key. | ||
/// </summary> | ||
/// <value> | ||
/// The remote public key. | ||
/// </value> | ||
public DiffieHellmanKey RemotePublicKey { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the provider. | ||
/// </summary> | ||
/// <value> | ||
/// The provider. | ||
/// </value> | ||
public DiffieHellmanProvider Provider { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets the state of the connection. | ||
/// </summary> | ||
/// <value> | ||
/// The state of the connection. | ||
/// </value> | ||
public ConnectionState ConnectionState { get; set; } | ||
} | ||
|
||
public enum ConnectionState | ||
{ | ||
NegotiateKeyPair, | ||
Connected | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters