示例#1
0
        public bool Send(byte[] buffer)
        {
            if (!this.IsAvaliable())
            {
                return(false);
            }
            SendHandler sh = new SendHandler(ServerManager.Send);

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

            return(sh.Invoke(this.DtuID, buffer)); // synchronized.
        }