Val get_or_set_socket_dontroute_option (Task* task, Val arg) { //======================= // // Mythryl type: (Socket_Fd, Null_Or(Bool)) -> Bool // // This function gets bound as ctl_dontroute in: // // src/lib/std/src/socket/socket-guts.pkg return get_or_set_boolean_socket_option (task, arg, SO_DONTROUTE); // get_or_set_boolean_socket_option def in src/c/lib/socket/get-or-set-boolean-socket-option.c }
Val get_or_set_socket_debug_option (Task* task, Val arg) { //============================== // // Mythryl type: (Socket_Fd, Null_Or(Bool)) -> Bool // // This function gets bound as ctl_debug in: // // src/lib/std/src/socket/socket-guts.pkg ENTER_MYTHRYL_CALLABLE_C_FN("get_or_set_socket_debug_option"); return get_or_set_boolean_socket_option( task, arg, SO_DEBUG ); // get_or_set_boolean_socket_option def in src/c/lib/socket/get-or-set-boolean-socket-option.c // // We do the RELEASE_MYTHRYL_HEAP/RECOVER_MYTHRYL_HEAP stuff in // get_or_set_boolean_socket_option(). }