|
using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;
using System.Net.Security;
using SocketServerLib.SocketHandler;
using AsyncClientServerLib.Message;
using SocketServerLib.Message;
namespace AsyncClientServerLib.SocketHandler
{
/// <summary>
/// Basic Socket Client Handler. Implements the AbstractAsyncTcpSocketClientHandler class. The message class is BasicMessage.
/// </summary>
class AsyncSocketClientHandler : AbstractAsyncTcpSocketClientHandler
{
/// <summary>
/// The constructor for SSL connection.
/// </summary>
/// <param name="handler">The socket cient handler</param>
/// <param name="stream">The ssl stream</param>
public AsyncSocketClientHandler(Socket handler, SslStream stream)
: base(handler, stream, false)
{
}
/// <summary>
/// The constructor for not SSL connection.
/// </summary>
/// <param name="handler">The socket cient handler</param>
public AsyncSocketClientHandler(Socket handler)
: base(handler, null, false)
{
}
/// <summary>
/// Return a BasicMessage empty instance.
/// </summary>
/// <returns>The BasicMessage instance</returns>
protected override AbstractMessage GetMessageInstance()
{
return new BasicMessage();
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I’m an IT Project Manager for an Italian Betting Company and over the last 2 years I acquired experience in Betting area.
I have developed code in different object oriented languages (C#, C++, Java) for more than 10 years using a set of technology such as .Net, J2EE, multithreading, etc…