aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs
diff options
context:
space:
mode:
authorJeff Ames2008-01-12 01:35:25 +0000
committerJeff Ames2008-01-12 01:35:25 +0000
commit5d7e120d56873d91141695ddf7aebd88e4619dce (patch)
tree79e5ae7fcb518dfc726e447a029744b05204001c /OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs
parentAnd one last time - removed duplicate exception dump :) (diff)
downloadopensim-SC-5d7e120d56873d91141695ddf7aebd88e4619dce.zip
opensim-SC-5d7e120d56873d91141695ddf7aebd88e4619dce.tar.gz
opensim-SC-5d7e120d56873d91141695ddf7aebd88e4619dce.tar.bz2
opensim-SC-5d7e120d56873d91141695ddf7aebd88e4619dce.tar.xz
Set svn:eol-style.
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs64
1 files changed, 32 insertions, 32 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs
index 83548b4..36a13e3 100644
--- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs
+++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPCommon.cs
@@ -1,33 +1,33 @@
1namespace OpenSim.Region.ScriptEngine.Common.TRPC 1namespace OpenSim.Region.ScriptEngine.Common.TRPC
2{ 2{
3 public class TCPCommon 3 public class TCPCommon
4 { 4 {
5 public delegate void ClientConnectedDelegate(int ID, System.Net.EndPoint Remote); 5 public delegate void ClientConnectedDelegate(int ID, System.Net.EndPoint Remote);
6 public delegate void DataReceivedDelegate(int ID, byte[] data, int offset, int length); 6 public delegate void DataReceivedDelegate(int ID, byte[] data, int offset, int length);
7 public delegate void DataSentDelegate(int ID, int length); 7 public delegate void DataSentDelegate(int ID, int length);
8 public delegate void CloseDelegate(int ID); 8 public delegate void CloseDelegate(int ID);
9 public delegate void ConnectErrorDelegate(string Reason); 9 public delegate void ConnectErrorDelegate(string Reason);
10 10
11 11
12 public interface ServerAndClientInterface 12 public interface ServerAndClientInterface
13 { 13 {
14 void Send(int clientID, byte[] data, int offset, int len); 14 void Send(int clientID, byte[] data, int offset, int len);
15 event ClientConnectedDelegate ClientConnected; 15 event ClientConnectedDelegate ClientConnected;
16 event DataReceivedDelegate DataReceived; 16 event DataReceivedDelegate DataReceived;
17 event DataSentDelegate DataSent; 17 event DataSentDelegate DataSent;
18 event CloseDelegate Close; 18 event CloseDelegate Close;
19 } 19 }
20 public interface ClientInterface : ServerAndClientInterface 20 public interface ClientInterface : ServerAndClientInterface
21 { 21 {
22 event TCPCommon.ConnectErrorDelegate ConnectError; 22 event TCPCommon.ConnectErrorDelegate ConnectError;
23 void Connect(string RemoteHost, int RemotePort); 23 void Connect(string RemoteHost, int RemotePort);
24 void Disconnect(int ID); 24 void Disconnect(int ID);
25 } 25 }
26 public interface ServerInterface : ServerAndClientInterface 26 public interface ServerInterface : ServerAndClientInterface
27 { 27 {
28 void StartListen(); 28 void StartListen();
29 void StopListen(); 29 void StopListen();
30 } 30 }
31 31
32 } 32 }
33} \ No newline at end of file 33} \ No newline at end of file