mirror of
				https://github.com/esiur/esiur-dotnet.git
				synced 2025-10-30 23:51:34 +00:00 
			
		
		
		
	.Net 6 Upgrade
This commit is contained in:
		| @@ -32,35 +32,34 @@ using System.Collections; | ||||
| using Esiur.Misc; | ||||
| using Esiur.Data; | ||||
|  | ||||
| namespace Esiur.Net.TCP | ||||
| namespace Esiur.Net.TCP; | ||||
| public class TCPConnection : NetworkConnection | ||||
| { | ||||
|     public class TCPConnection:NetworkConnection    { | ||||
|  | ||||
|         private KeyList<string, object> variables = new KeyList<string, object>(); | ||||
|     private KeyList<string, object> variables = new KeyList<string, object>(); | ||||
|  | ||||
|         public TCPServer Server { get; internal set; } | ||||
|     public TCPServer Server { get; internal set; } | ||||
|  | ||||
|         public KeyList<string, object> Variables | ||||
|     public KeyList<string, object> Variables | ||||
|     { | ||||
|         get | ||||
|         { | ||||
|             get | ||||
|             { | ||||
|                 return variables; | ||||
|             } | ||||
|         } | ||||
|  | ||||
|         protected override void Connected() | ||||
|         { | ||||
|             // do nothing | ||||
|         } | ||||
|  | ||||
|         protected override void DataReceived(NetworkBuffer buffer) | ||||
|         { | ||||
|             Server?.Execute(this, buffer); | ||||
|         } | ||||
|  | ||||
|         protected override void Disconencted() | ||||
|         { | ||||
|             // do nothing | ||||
|             return variables; | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     protected override void Connected() | ||||
|     { | ||||
|         // do nothing | ||||
|     } | ||||
|  | ||||
|     protected override void DataReceived(NetworkBuffer buffer) | ||||
|     { | ||||
|         Server?.Execute(this, buffer); | ||||
|     } | ||||
|  | ||||
|     protected override void Disconencted() | ||||
|     { | ||||
|         // do nothing | ||||
|     } | ||||
| } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user