diff options
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Common/TRPC/TCPSocket.cs')
-rw-r--r-- | OpenSim/Region/ScriptEngine/Common/TRPC/TCPSocket.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPSocket.cs b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPSocket.cs index 1e47439..a14f245 100644 --- a/OpenSim/Region/ScriptEngine/Common/TRPC/TCPSocket.cs +++ b/OpenSim/Region/ScriptEngine/Common/TRPC/TCPSocket.cs | |||
@@ -1,4 +1,4 @@ | |||
1 | /* | 1 | /* |
2 | * Copyright (c) Contributors, http://opensimulator.org/ | 2 | * Copyright (c) Contributors, http://opensimulator.org/ |
3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. | 3 | * See CONTRIBUTORS.TXT for a full list of copyright holders. |
4 | * | 4 | * |
@@ -33,7 +33,6 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC | |||
33 | { | 33 | { |
34 | public class TCPSocket | 34 | public class TCPSocket |
35 | { | 35 | { |
36 | |||
37 | public readonly Socket Client; | 36 | public readonly Socket Client; |
38 | public readonly int ID; | 37 | public readonly int ID; |
39 | 38 | ||
@@ -52,6 +51,7 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC | |||
52 | ID = id; | 51 | ID = id; |
53 | Client = client; | 52 | Client = client; |
54 | } | 53 | } |
54 | |||
55 | public void Start() | 55 | public void Start() |
56 | { | 56 | { |
57 | // Start listening | 57 | // Start listening |
@@ -85,10 +85,8 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC | |||
85 | 85 | ||
86 | // Start new receive | 86 | // Start new receive |
87 | BeginReceive(); | 87 | BeginReceive(); |
88 | |||
89 | } | 88 | } |
90 | 89 | ||
91 | |||
92 | public void Send(int clientID, byte[] data, int offset, int len) | 90 | public void Send(int clientID, byte[] data, int offset, int len) |
93 | { | 91 | { |
94 | Client.BeginSend(data, offset, len, SocketFlags.None, new AsyncCallback(asyncDataSent), Client); | 92 | Client.BeginSend(data, offset, len, SocketFlags.None, new AsyncCallback(asyncDataSent), Client); |
@@ -111,4 +109,4 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC | |||
111 | Close(ID); | 109 | Close(ID); |
112 | } | 110 | } |
113 | } | 111 | } |
114 | } \ No newline at end of file | 112 | } |