func (a *Auth) Plain(directory string) error {
	cmd := C.CString("PLAIN")
	defer C.free(unsafe.Pointer(cmd))

	cDirectory := C.CString(directory)
	defer C.free(unsafe.Pointer(cDirectory))

	rc := C.zstr_sendm(unsafe.Pointer(a.zactorT), cmd)
	if rc == -1 {
		return ErrActorCmd
	}

	rc = C.zstr_send(unsafe.Pointer(a.zactorT), cDirectory)
	if rc == -1 {
		return ErrActorCmd
	}

	C.zsock_wait(unsafe.Pointer(a.zactorT))

	return nil
}
// Plain sets auth method to plain
Plain sets auth method to plain
// Plain sets auth method to plain
func (a *Auth) Plain(directory string) error {
	cmd := C.CString("PLAIN")
	defer C.free(unsafe.Pointer(cmd))
	cDirectory := C.CString(directory)
	defer C.free(unsafe.Pointer(cDirectory))
	rc := C.zstr_sendm(unsafe.Pointer(a.zactorT), cmd)
	if rc == -1 {
		return ErrActorCmd
	}
	rc = C.zstr_send(unsafe.Pointer(a.zactorT), cDirectory)
	if rc == -1 {
		return ErrActorCmd
	}
	C.zsock_wait(unsafe.Pointer(a.zactorT))
	return nil
}
func ( a * Auth ) Plain ( directory string ) error { cmd := C . CString ( " " ) defer C . free ( unsafe . Pointer ( cmd ) ) cDirectory := C . CString ( directory ) defer C . free ( unsafe . Pointer ( cDirectory ) ) rc := C . zstr_sendm ( unsafe . Pointer ( a . zactorT ) , cmd ) if rc == - 1 { return ErrActorCmd } rc = C . zstr_send ( unsafe . Pointer ( a . zactorT ) , cDirectory ) if rc == - 1 { return ErrActorCmd } C . zsock_wait ( unsafe . Pointer ( a . zactorT ) ) return nil }
Plain sets auth method to plain
Plain sets auth method to plain