pike.git / src / modules / _Stdio / socket.c

version» Context lines:

pike.git/src/modules/_Stdio/socket.c:125:    }    change_fd_for_box (&p->box, -1);    }   }      /*! @decl mixed set_id(mixed id)    *!    *! This function sets the id used for accept_callback by this port.    *! The default id is @[this_object()].    *! +  *! @note +  *! In Pike 8.0 and earlier the default value was @expr{0@} (zero) +  *! (even though it was documented as above). +  *!    *! @seealso    *! @[query_id]    */   static void port_set_id(INT32 args)   {    check_all_args(NULL, args, BIT_MIXED, 0);       /* NB: Inlined code for PIKE_T_NO_REF_MIXED from object_lower_set_index(). */    if (((TYPEOF(THIS->id) == T_OBJECT) || (TYPEOF(THIS->id) == T_FUNCTION)) &&    (THIS->id.u.object == Pike_fp->current_object)) {