/* * call-seq: * conn.bound? => true or false * * Return *true* if the LDAP connection is still bound. */ VALUE rb_ldap_conn_bound (VALUE self) { RB_LDAP_DATA *ldapdata; Data_Get_Struct (self, RB_LDAP_DATA, ldapdata); return ldapdata->bind == 0 ? Qfalse : Qtrue; }