Changeset 224 for binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Telnet/TelnetConnection.cs
- Timestamp:
- Apr 2, 2015, 9:16:34 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
binary-improvements/7dtd-server-fixes/src/NetConnections/Servers/Telnet/TelnetConnection.cs
r202 r224 13 13 private readonly BlockingQueue<string> toClientQueue = new BlockingQueue<string> (); 14 14 private readonly Telnet telnet; 15 private readonly Thread receiveThread = null;16 private readonly Thread sendThread = null;17 15 private bool authenticated = false; 18 16 private readonly bool authEnabled; … … 44 42 Log.Out ("Telnet connection from: " + endpoint); 45 43 46 receiveThread = ThreadMaster.Create ("TelnetClientReceive_" + endpoint.ToString (), new ThreadStart (ReceiveThread)); 47 receiveThread.Start (); 48 sendThread = ThreadMaster.Create ("TelnetClientSend" + endpoint.ToString (), new ThreadStart (SendThread)); 49 sendThread.Start (); 44 ThreadManager.StartThread ("TelnetClientReceive_" + endpoint.ToString (), new ThreadManager.ThreadFunctionDelegate (ReceiveThread), System.Threading.ThreadPriority.BelowNormal); 45 ThreadManager.StartThread ("TelnetClientSend_" + endpoint.ToString (), new ThreadManager.ThreadFunctionDelegate (SendThread), System.Threading.ThreadPriority.BelowNormal); 50 46 51 47 if (authEnabled) { … … 77 73 } 78 74 79 private void ReceiveThread ( )75 private void ReceiveThread (ThreadManager.ThreadInfo _tInfo) 80 76 { 81 77 try { … … 116 112 if (!closed) 117 113 Close (); 118 ThreadMaster.Remove (Thread.CurrentThread.Name);119 114 } 120 115 121 private void SendThread ( )116 private void SendThread (ThreadManager.ThreadInfo _tInfo) 122 117 { 123 118 try { … … 140 135 if (!closed) 141 136 Close (); 142 ThreadMaster.Remove (Thread.CurrentThread.Name);143 137 } 144 138
Note:
See TracChangeset
for help on using the changeset viewer.