| 1234567891011121314151617181920212223242526272829 |
- using System;
- using System.Threading.Tasks;
- namespace Model
- {
- public enum NetworkProtocol
- {
- TCP,
- UDP,
- KCP,
- }
- public abstract class AService: IDisposable
- {
- public abstract void Add(Action action);
- public abstract AChannel GetChannel(long id);
- public abstract Task<AChannel> AcceptChannel();
- public abstract AChannel ConnectChannel(string host, int port);
- public abstract void Remove(long channelId);
- public abstract void Update();
- public abstract void Dispose();
- }
- }
|