|
using System;
using System.Collections.Generic;
using System.Text;
using System.Net.Sockets;
namespace AsyncSocketSample
{
/// <summary>
/// Token class used in the SocketAsyncEventArgs.UserToken property.
/// </summary>
class AsyncUserToken
{
Socket m_socket;
public AsyncUserToken() : this(null) { }
public AsyncUserToken(Socket socket)
{
m_socket = socket;
}
public Socket Socket
{
get { return m_socket; }
set { m_socket = value; }
}
}
}
|
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.