mirror of https://github.com/ogoun/Zero.git
				
				
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							24 lines
						
					
					
						
							652 B
						
					
					
				
			
		
		
	
	
							24 lines
						
					
					
						
							652 B
						
					
					
				| using System;
 | |
| using System.Net;
 | |
| 
 | |
| namespace ZeroLevel.Network
 | |
| {
 | |
|     public interface ISocketClient:
 | |
|         IDisposable
 | |
|     {
 | |
|         event Action<ISocketClient, byte[], int> OnIncomingData;
 | |
|         event Action<ISocketClient> OnConnect;
 | |
|         event Action<ISocketClient> OnDisconnect;
 | |
|         IPEndPoint Endpoint { get; }
 | |
|         SocketClientStatus Status { get; }
 | |
| 
 | |
|         IRouter Router { get; }
 | |
| 
 | |
|         void ForceConnect();
 | |
|         void UseKeepAlive(TimeSpan period);
 | |
|         void Send(Frame data);
 | |
|         void Request(Frame data, Action<Frame> callback, Action<string> fail = null);
 | |
|         void Response(byte[] data, int identity);
 | |
|     }
 | |
| }
 |