public bool Send(byte[] buffer) { if (!this.IsAvaliable()) { return(false); } SendHandler sh = new SendHandler(ServerManager.Send); return(sh.Invoke(this.DtuID, buffer)); // synchronized. }
public bool Asend(byte[] buffer) { if (!this.IsAvaliable()) { return(false); } SendHandler sh = this._server.Send; return(sh.Invoke(this.DtuID, buffer)); // synchronized. }