示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AsyncSocketSender"/> class.
 /// </summary>
 /// <param name="socket">The socket.</param>
 public AsyncSocketSender(System.Net.Sockets.Socket socket)
 {
     m_Socket       = socket;
     m_Callback     = new AsyncCallback(this.Callback);
     m_SocketBuffer = new SocketBuffer();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AsyncSocketSender"/> class.
 /// </summary>
 /// <param name="socket">The socket.</param>
 public AsyncSocketSender(System.Net.Sockets.Socket socket)
 {
     m_Socket = socket;
     m_Callback = new AsyncCallback(this.Callback);
     m_SocketBuffer = new SocketBuffer();
 }