public Server(Protocol protocol, AsyncWay asyncWay) : base(protocol, asyncWay) { OnServerStart += OnStart; OnServerAccept += OnAccept; OnServerSend += OnSend; OnServerReceive += OnReceive; OnServerDisconnect += OnDisconnect; }
public NetworkObject(Protocol protocol, AsyncWay asyncWay) { if (protocol == Protocol.TCP) { Socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); } AsyncWay = asyncWay; }
public Client(Protocol protocol, AsyncWay asyncWay) : base(protocol, asyncWay) { }