aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.Transport/Servers/ClientConnectedEventArgs.cs
blob: 976a749ccc2496bf85db8f70b864b053a8f9550e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net.Sockets;
using System.Text;
using System.Threading.Tasks;

namespace Tango.Transport.Servers
{
    /// <summary>
    /// Represents a <see cref="TcpServer"/> new client event arguments.
    /// </summary>
    /// <seealso cref="System.EventArgs" />
    public class ClientConnectedEventArgs : EventArgs
    {
        /// <summary>
        /// Gets or sets the new socket.
        /// </summary>
        public TcpClient Socket { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="ClientConnectedEventArgs"/> class.
        /// </summary>
        /// <param name="socket">The socket.</param>
        public ClientConnectedEventArgs(TcpClient socket)
        {
            Socket = socket;
        }
    }
}