diff options
Diffstat (limited to 'OpenSim/Region/ClientStack/TCPJSONStream/ClientAcceptedEventArgs.cs')
-rw-r--r-- | OpenSim/Region/ClientStack/TCPJSONStream/ClientAcceptedEventArgs.cs | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/OpenSim/Region/ClientStack/TCPJSONStream/ClientAcceptedEventArgs.cs b/OpenSim/Region/ClientStack/TCPJSONStream/ClientAcceptedEventArgs.cs deleted file mode 100644 index a58eab1..0000000 --- a/OpenSim/Region/ClientStack/TCPJSONStream/ClientAcceptedEventArgs.cs +++ /dev/null | |||
@@ -1,50 +0,0 @@ | |||
1 | using System; | ||
2 | using System.Net.Sockets; | ||
3 | |||
4 | namespace OpenSim.Region.ClientStack.TCPJSONStream | ||
5 | { | ||
6 | /// <summary> | ||
7 | /// Invoked when a client have been accepted by the <see cref="HttpListener"/> | ||
8 | /// </summary> | ||
9 | /// <remarks> | ||
10 | /// Can be used to revoke incoming connections | ||
11 | /// </remarks> | ||
12 | public class ClientAcceptedEventArgs : EventArgs | ||
13 | { | ||
14 | private readonly Socket _socket; | ||
15 | private bool _revoke; | ||
16 | |||
17 | /// <summary> | ||
18 | /// Initializes a new instance of the <see cref="ClientAcceptedEventArgs"/> class. | ||
19 | /// </summary> | ||
20 | /// <param name="socket">The socket.</param> | ||
21 | public ClientAcceptedEventArgs(Socket socket) | ||
22 | { | ||
23 | _socket = socket; | ||
24 | } | ||
25 | |||
26 | /// <summary> | ||
27 | /// Accepted socket. | ||
28 | /// </summary> | ||
29 | public Socket Socket | ||
30 | { | ||
31 | get { return _socket; } | ||
32 | } | ||
33 | |||
34 | /// <summary> | ||
35 | /// Client should be revoked. | ||
36 | /// </summary> | ||
37 | public bool Revoked | ||
38 | { | ||
39 | get { return _revoke; } | ||
40 | } | ||
41 | |||
42 | /// <summary> | ||
43 | /// Client may not be handled. | ||
44 | /// </summary> | ||
45 | public void Revoke() | ||
46 | { | ||
47 | _revoke = true; | ||
48 | } | ||
49 | } | ||
50 | } \ No newline at end of file | ||