private int Verify() { ProAnalyser proAnalyserSend = new ProAnalyser(); proAnalyserSend.OpVerifyInit(); try { lisSock.Send(proAnalyserSend.Encode()); } catch (Exception) { return(-1); } return(0); }
public int ResetBit(int wcStm, int wcBit) { ProAnalyser proAnalyserSend = new ProAnalyser(); byte[] io = new byte[10]; io[wcBit / 8] = (byte)(0x80 >> (wcBit % 8)); proAnalyserSend.OpResetInit(io, wcStm); try { lisSock.Send(proAnalyserSend.Encode()); } catch (Exception) { return(-1); } return(0); }
public byte[] GetBits(int wcStm) { ProAnalyser proAnalyserSend = new ProAnalyser(); proAnalyserSend.OpQueryInit(wcStm); try { lisSock.Send(proAnalyserSend.Encode()); } catch (Exception) { return(null); } if (isUpdate == true) { lock (mtx) { isUpdate = false; return(this.io); } } return(null); }