mirror of
https://github.com/opensim/opensim.git
synced 2026-08-05 08:55:56 +08:00
Added copyright heaaders. Minor cleanup.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/*
|
||||
/*
|
||||
* Copyright (c) Contributors, http://opensimulator.org/
|
||||
* See CONTRIBUTORS.TXT for a full list of copyright holders.
|
||||
*
|
||||
@@ -33,7 +33,6 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC
|
||||
{
|
||||
public class TCPSocket
|
||||
{
|
||||
|
||||
public readonly Socket Client;
|
||||
public readonly int ID;
|
||||
|
||||
@@ -52,6 +51,7 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC
|
||||
ID = id;
|
||||
Client = client;
|
||||
}
|
||||
|
||||
public void Start()
|
||||
{
|
||||
// Start listening
|
||||
@@ -85,10 +85,8 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC
|
||||
|
||||
// Start new receive
|
||||
BeginReceive();
|
||||
|
||||
}
|
||||
|
||||
|
||||
public void Send(int clientID, byte[] data, int offset, int len)
|
||||
{
|
||||
Client.BeginSend(data, offset, len, SocketFlags.None, new AsyncCallback(asyncDataSent), Client);
|
||||
@@ -111,4 +109,4 @@ namespace OpenSim.Region.ScriptEngine.Common.TRPC
|
||||
Close(ID);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user