__attribute__((unused)) static void transfer_to_game_srv(conn_node_data *conn_node) { move_chain(&conn_node->recv, &game_srv_session->send); ngx_connection_t *c = game_srv_session->session->connection; if (ngx_handle_write_event(c->write, 0) != NGX_OK) conn_srv_close_connection(c); }
static void transfer_to_login_srv(conn_node_data *conn_node) { move_chain(&conn_node->recv, &login_srv_session->send); ngx_connection_t *c = login_srv_session->session->connection; if (ngx_handle_write_event(c->write, 0) != NGX_OK) conn_srv_close_connection(c); }
__attribute__((unused)) static void transfer_to_player(conn_node_data *conn_node, uint64_t player_id) { conn_node_data *client = get_client_by_playerid(player_id); if (!client || client->session) return; move_chain(&conn_node->recv, &client->send); ngx_connection_t *c = client->session->connection; if (ngx_handle_write_event(c->write, 0) != NGX_OK) conn_srv_close_connection(c); }
static void transfer_to_client_fd(conn_node_data *conn_node, uint32_t fd) { assert(fd <= UINT16_MAX); conn_node_data *client = &client_session[fd]; if (client->session) return; move_chain(&conn_node->recv, &client->send); ngx_connection_t *c = client->session->connection; if (ngx_handle_write_event(c->write, 0) != NGX_OK) conn_srv_close_connection(c); }
void s_b(t_content *axx) { if (((t_clist*)LIST_V(1, 1) + 3)->bit != 0 && VALUE_I(1, 0) > 2) { PUSH2(1, 1); move_chain(axx, -1, -2); if (VALUE_I(2, 0) == 1) ft_putstr("sb "); if (VALUE_I(2, 0) == 2) { ft_putstr("sb :"); verboz(axx); } } }
void p_a(t_content *axx) { if (LIST_V(1, 0) == LIST_V(1, 2)) return ; if (((t_clist*)LIST_V(1, 1) + 3)->bit != 0) { PUSH2(1, 0); move_chain(axx, -1, 0); if (VALUE_I(2, 0) == 1) ft_putstr("pa "); if (VALUE_I(2, 0) == 2) { ft_putstr("pa :"); verboz(axx); VALUE_I(0, 0)++; VALUE_I(1, 0)--; } } }