| 24 |
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
private static readonly ILog m_log = LogManager.GetLogger(MethodBase.GetCurrentMethod().DeclaringType); |
| 25 |
private string m_clientToSpawn; |
private string m_clientToSpawn; |
| 26 |
|
|
| 27 |
|
private int m_defaultRTO = 0; |
| 28 |
|
private int m_maxRTO = 0; |
| 29 |
|
|
| 30 |
public RexUDPServer(IPAddress _listenIP, ref uint port, int proxyPortOffset, bool allow_alternate_port, IConfigSource configSource, |
public RexUDPServer(IPAddress _listenIP, ref uint port, int proxyPortOffset, bool allow_alternate_port, IConfigSource configSource, |
| 31 |
AgentCircuitManager authenticateClass) : base (_listenIP, ref port, proxyPortOffset, allow_alternate_port, configSource, authenticateClass) |
AgentCircuitManager authenticateClass) : base (_listenIP, ref port, proxyPortOffset, allow_alternate_port, configSource, authenticateClass) |
| 32 |
{ |
{ |
| 45 |
} |
} |
| 46 |
} |
} |
| 47 |
|
|
| 48 |
|
IConfig config = configSource.Configs["ClientStack.LindenUDP"]; |
| 49 |
|
if (config != null) |
| 50 |
|
{ |
| 51 |
|
m_defaultRTO = config.GetInt("DefaultRTO", 0); |
| 52 |
|
m_maxRTO = config.GetInt("MaxRTO", 0); |
| 53 |
|
} |
| 54 |
|
|
| 55 |
//CreatePacketServer(userSettings, clientToSpawn); |
//CreatePacketServer(userSettings, clientToSpawn); |
| 56 |
} |
} |
| 57 |
|
|
| 58 |
protected override void AddClient(uint circuitCode, UUID agentID, UUID sessionID, IPEndPoint remoteEndPoint, AuthenticateResponse sessionInfo) |
protected override void AddClient(uint circuitCode, UUID agentID, UUID sessionID, IPEndPoint remoteEndPoint, AuthenticateResponse sessionInfo) |
| 59 |
{ |
{ |
| 60 |
// Create the LLUDPClient |
// Create the LLUDPClient |
| 61 |
LLUDPClient udpClient = new LLUDPClient(this, m_throttleRates, m_throttle, circuitCode, agentID, remoteEndPoint); |
LLUDPClient udpClient = new LLUDPClient(this, m_throttleRates, m_throttle, circuitCode, agentID, remoteEndPoint, m_defaultRTO, m_maxRTO); |
| 62 |
IClientAPI existingClient; |
IClientAPI existingClient; |
| 63 |
|
|
| 64 |
if (!m_scene.TryGetClient(agentID, out existingClient)) |
if (!m_scene.TryGetClient(agentID, out existingClient)) |