Documentation fix

This commit is contained in:
MaxXor 2015-05-30 08:47:27 +02:00
parent 9051a9ff2b
commit f195e9fb51
2 changed files with 11 additions and 5 deletions

View File

@ -73,11 +73,6 @@ namespace xServer.Core
public delegate void ClientWriteEventHandler(Client s, IPacket packet, long length, byte[] rawData);
public bool Equals(Client c)
{
return this.EndPoint.Port == c.EndPoint.Port; // this port is always unique for each client
}
private void OnClientWrite(IPacket packet, long length, byte[] rawData)
{
if (ClientWrite != null)
@ -86,6 +81,16 @@ namespace xServer.Core
}
}
/// <summary>
/// Checks whether the clients are equal.
/// </summary>
/// <param name="c">Client to compare with.</param>
/// <returns></returns>
public bool Equals(Client c)
{
return this.EndPoint.Port == c.EndPoint.Port; // this port is always unique for each client
}
/// <summary>
/// The type of the packet received.
/// </summary>

View File

@ -82,6 +82,7 @@ namespace xServer.Core
/// Fires an event that informs subscribers that the a packet has been
/// received from the client.
/// </summary>
/// <param name="c">The client that has sent the packet.</param>
/// <param name="packet">The packet that has been received by the server from the client.</param>
private void OnClientRead(Client c, IPacket packet)
{