Hi, I just want to know, how to get CTS and DSR values in windows environment. i have tried below way, but it did not work for me; Can u please look into this?
func (p *Port) getCtrlSignal(sigmask uint) (bool, error) { state := uint(0) _, _, errno := syscall.Syscall( syscall.SYS_IOCTL, p.file.Fd(), uintptr(syscall.TIOCMGET), uintptr(unsafe.Pointer(&state))) if errno != 0 { return false, fmt.Errorf("ioctl TIOCMGET %d", errno) } return ((state & sigmask) != 0), nil } Thank You!!! -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.