/// <summary> /// 链路控制 /// </summary> /// <param name="ctrlType"></param> /// <param name="content"></param> /// <returns></returns> public ApplicationLayerProtocol LinkControl(LinkControlType ctrlType, bool priority, params byte[] content) { ParaInfo[] paras = new ParaInfo[content.Length + 1]; paras[0].ByteLen = 1; paras[0].Value = (byte)ctrlType; int index = 1; for (int i = 0; i < content.Length; i++) { paras[i].ByteLen = 1; paras[i].Value = content[i]; index++; } ApplicationLayerProtocol newFrame = new ApplicationLayerProtocol(ApplicationLayerProtocol.RequestID, ServicesID.LinkControl, priority, paras); return(newFrame); }
public DockPoint(int x, int y, LinkControlType type) { this.x = x; this.y = y; this.lct = type; }