-
Notifications
You must be signed in to change notification settings - Fork 21
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
31 changed files
with
689 additions
and
631 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using KingNetwork.Shared; | ||
using KingNetwork.Shared.Interfaces; | ||
|
||
namespace KingNetwork.Client.Interfaces | ||
{ | ||
/// <summary> | ||
/// This class is responsible for representation of network listener. | ||
/// </summary> | ||
internal interface INetworkListener | ||
{ | ||
/// <summary> | ||
/// Method responsible for start the client network tcp listener. | ||
/// </summary> | ||
/// <param name="ip">The ip address of server.</param> | ||
/// <param name="port">The port of server.</param> | ||
/// <param name="maxMessageBuffer">The max length of message buffer.</param> | ||
void StartClient(string ip, int port, ushort maxMessageBuffer); | ||
|
||
/// <summary> | ||
/// Method responsible for send message to connected server. | ||
/// </summary> | ||
/// <param name="writer">The king buffer writer of received message.</param> | ||
void SendMessage(IKingBufferWriter writer); | ||
|
||
/// <summary> | ||
/// This method is responsible for call the dispose implementation method. | ||
/// </summary> | ||
void Dispose(); | ||
|
||
/// <summary> | ||
/// This method is responsible for verify if listener has connected. | ||
/// </summary> | ||
bool Connected(); | ||
|
||
/// <summary> | ||
/// Method responsible for stop the tcp network listener. | ||
/// </summary> | ||
void Stop(); | ||
} | ||
} |
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
Oops, something went wrong.