func (s socketStatus) inTeardown() bool { switch C.enum_UDTSTATUS(s) { case C.BROKEN, C.CLOSED, C.NONEXIST: // c.CLOSING return true } return false }
func (s socketStatus) inSetup() bool { switch C.enum_UDTSTATUS(s) { case C.INIT, C.OPENED, C.LISTENING, C.CONNECTING: return true } return false }
func (s socketStatus) inConnected(sock C.UDTSOCKET) bool { return C.enum_UDTSTATUS(s) == C.CONNECTED }