![]() |
Freeciv21
Develop your civilization from humble roots to a global empire
|
#include <connection.h>
Collaboration diagram for connection:Definition at line 127 of file connection.h.
| union { ... } |
| enum cmdlevel connection::access_level |
Definition at line 158 of file connection.h.
Referenced by can_conn_edit_players_nation(), can_conn_enable_editing(), close_connection(), conn_set_access(), detach_command(), first_timeout_callback(), firstlevel_command(), handle_conn_info(), handle_observer_ready(), handle_save_scenario(), is_allowed_city_name(), is_restricted(), manual_command(), may_use(), observe_command(), package_conn_info(), remove_player_command(), server_make_connection(), server_player_name_is_allowed(), set_cmdlevel(), setting_is_changeable(), setting_is_visible(), show_connections(), show_players(), page_pregame::start_page_menu(), take_command(), and timeout_callback().
| QString connection::addr |
Definition at line 152 of file connection.h.
Referenced by conn_description(), conn_pattern_match(), establish_new_connection(), handle_conn_info(), handle_login_request(), send_to_metaserver(), and server_make_connection().
| time_t connection::auth_settime |
Definition at line 199 of file connection.h.
| int connection::auth_tries |
Definition at line 194 of file connection.h.
| struct socket_packet_buffer* connection::buffer |
Definition at line 144 of file connection.h.
Referenced by connection_common_close(), connection_common_init(), get_packet_from_connection_raw(), handle_conn_info(), and read_from_connection().
| int connection::bytes_send |
Definition at line 256 of file connection.h.
Referenced by connection_common_init(), connection_send_data(), and send_packet_data().
| char connection::capability[MAX_LEN_CAPSTR] |
Definition at line 158 of file connection.h.
Referenced by conn_set_capability(), handle_conn_info(), handle_login_request(), handle_player_info(), handle_server_join_reply(), package_conn_info(), and server_make_connection().
| struct { ... } connection::client |
| QString connection::closing_reason |
Definition at line 133 of file connection.h.
Referenced by conn_description(), connection_close(), and server_make_connection().
| struct { ... } connection::compression |
| int connection::currently_processed_request_id |
Definition at line 184 of file connection.h.
| struct { ... } connection::delegation |
| bool connection::established |
Definition at line 131 of file connection.h.
Referenced by client_is_observer(), client_packet_input(), conn_description(), connection_common_close(), connection_common_init(), establish_new_connection(), handle_conn_info(), handle_login_request(), handle_server_join_reply(), package_conn_info(), server_packet_input(), tilespec_reread_callback(), and try_to_autoconnect().
| int connection::frozen_level |
Definition at line 251 of file connection.h.
Referenced by conn_compression_freeze(), conn_compression_frozen(), conn_compression_thaw(), and connection_common_init().
| enum cmdlevel connection::granted_access_level |
Definition at line 207 of file connection.h.
| const struct packet_handlers* connection::handlers |
Definition at line 247 of file connection.h.
Referenced by conn_set_capability(), get_packet_from_connection_raw(), and init_packet_hashs().
| int connection::id |
Definition at line 128 of file connection.h.
Referenced by cancel_connection_votes(), cancelvote_command(), connection_vote(), do_map_click(), do_unit_act_sel_vs(), establish_new_connection(), finish_processing_request(), get_challenge_filename(), get_vote_by_caller(), handle_conn_info(), handle_event(), handle_server_join_reply(), key_unit_action_select(), mapimg_command(), package_conn_info(), package_event_full(), server_make_connection(), start_processing_request(), vote_new(), and vote_would_pass_immediately().
| struct conn_pattern_list* connection::ignore_list |
Definition at line 213 of file connection.h.
| void(* connection::incoming_packet_notify) (struct connection *pc, int packet_type, int size) |
Definition at line 234 of file connection.h.
Referenced by get_packet_from_connection_raw(), make_connection(), and server_make_connection().
| char connection::ipaddr[MAX_LEN_ADDR] |
Definition at line 207 of file connection.h.
Referenced by kick_command().
| bool connection::is_closing |
Definition at line 217 of file connection.h.
| int connection::last_processed_request_id_seen |
Definition at line 175 of file connection.h.
| int connection::last_request_id_seen |
Definition at line 187 of file connection.h.
| int connection::last_request_id_used |
Definition at line 172 of file connection.h.
| class civtimer* connection::last_write |
Definition at line 146 of file connection.h.
Referenced by connection_common_close(), connection_common_init(), and write_socket_data().
| void(* connection::notify_of_writable_data) (struct connection *pc, bool data_available_and_socket_full) |
Definition at line 166 of file connection.h.
Referenced by flush_connection_send_buffer_all(), flush_connection_send_buffer_packets(), and server_make_connection().
| bool connection::observer |
Definition at line 138 of file connection.h.
Referenced by can_conn_edit(), can_conn_edit_players_nation(), chat_msg_to_player(), client_game_free(), client_game_init(), client_is_global_observer(), client_is_observer(), conn_controls_player(), conn_description(), conn_is_global_observer(), connection_attach_real(), connection_delegate_restore(), connection_delegate_take(), connection_detach(), delegate_command(), delegate_player_str(), detach_command(), form_chat_name(), handle_chat_msg_req(), handle_conn_info(), handle_report_req(), observe_command(), package_conn_info(), report_demographics(), restore_access_level(), send_delegation_info(), server_make_connection(), server_packet_input(), start_command(), take_command(), and page_pregame::update_buttons().
| void(* connection::outgoing_packet_notify) (struct connection *pc, int packet_type, int size, int request_id) |
Definition at line 242 of file connection.h.
Referenced by make_connection(), send_packet_data(), and server_make_connection().
| struct packet_header connection::packet_header |
Definition at line 131 of file connection.h.
Referenced by conn_compression_flush(), connection_common_init(), get_packet_from_connection_raw(), packet_check(), post_receive_packet_server_join_reply(), and post_send_packet_server_join_reply().
| char connection::password[MAX_LEN_PASSWORD] |
Definition at line 204 of file connection.h.
| struct { ... } connection::phs |
| double connection::ping_time |
Definition at line 148 of file connection.h.
Referenced by handle_conn_info(), handle_conn_pong(), and server_make_connection().
| QList<civtimer *>* connection::ping_timers |
Definition at line 191 of file connection.h.
| struct player* connection::playing |
Definition at line 142 of file connection.h.
Referenced by trade_generator::add_all_cities(), freeciv::improvement_seller::add_to_menu(), away_command(), blink_turn_done_button(), can_client_change_view(), can_client_control(), can_conn_edit(), can_conn_edit_players_nation(), can_end_turn(), can_meet_with_player(), center_on_something(), chat_msg_to_allies(), chat_msg_to_player(), cma_yoloswag::check_city(), city_can_buy(), city_packet_common(), client_game_free(), client_game_init(), client_government_sprite(), client_has_player(), client_is_global_observer(), client_player(), client_player_maps_reset(), client_player_number(), client_remove_cli_conn(), client_research_sprite(), client_tile_get_known(), clipboard_copy_production(), clipboard_paste_production(), close_connection(), close_socket_nomessage(), cmp_love(), col_diplstate(), col_embassy(), col_love(), col_vision(), conn_controls_player(), conn_description(), conn_get_access(), conn_is_global_observer(), connection_attach_real(), connection_delegate_restore(), connection_delegate_take(), connection_detach(), control_mouse_cursor(), units_select::create_pixmap(), cut_client_connection(), detach_command(), diplstate_value(), disband_all_units(), do_map_click(), do_move_unit(), do_unit_patrol_to(), establish_new_connection(), freeciv::layer_grid::fill_sprite_array(), find_best_focus_candidate(), find_city_or_settler_near_tile(), find_visible_unit(), form_chat_name(), city_widget::gen_production_labels(), get_act_sel_action_custom_text(), city_dialog::get_city(), get_city_mapview_name_and_growth(), get_economy_report_data(), get_economy_report_units_data(), get_info_label_text(), get_info_label_text_popup(), get_score_text(), get_tile_output_text(), get_tooltip(), get_tooltip_improvement(), get_tooltip_unit(), get_turn_done_button_state(), get_units_upgrade_info(), get_units_waiting_data(), handle_chat_msg_req(), handle_city_info(), handle_conn_info(), handle_diplomacy_init_meeting(), handle_event(), handle_new_year(), handle_player_info(), handle_player_remove(), handle_report_req(), handle_start_phase(), handle_tile_info(), handle_unit_action_answer(), handle_unit_action_query(), handle_unit_bombard_info(), handle_unit_combat_info(), handle_unit_get_actions(), handle_unit_packet_common(), handle_unit_short_info(), handle_worker_task(), has_player_unit_type(), diplo_dlg::init(), is_any_city_dialog_open(), freeciv::upkeep_widget::item_double_clicked(), mapimg_client_define(), meswin_popup_city(), research_diagram::mouseMoveEvent(), multiairlift(), races_dialog::nation_selected(), notify_goto::notify_goto(), observe_command(), freeciv::improvement_seller::operator()(), overview_tile_color(), package_conn_info(), pageGame::pageGame(), traditional_citybar_painter::paint(), polished_citybar_painter::paint(), national_budget_widget::paintEvent(), popup_info_text(), popup_revolution_dialog(), cma_yoloswag::put_city_under_agent(), quickselect(), races_dialog::races_dialog(), real_science_report_dialog_update(), national_budget_dialog::refresh(), freeciv::upkeep_widget::refresh(), pageGame::reloadSidebarIcons(), report_achievements(), report_demographics(), request_unit_unload(), restore_access_level(), governor::run(), science_dialog_text(), sell_all_improvements(), send_delegation_info(), send_diplomatic_meetings(), server_make_connection(), server_packet_input(), set_government_choice(), help_widget::set_topic_building(), help_widget::set_topic_extra(), help_widget::set_topic_goods(), help_widget::set_topic_government(), help_widget::set_topic_specialist(), help_widget::set_topic_tech(), help_widget::set_topic_terrain(), help_widget::set_topic_unit(), show_new_turn_info(), mr_menu::slot_spaceship(), spy_steal_shared(), start_command(), start_style_music(), take_command(), top_bar_right_click_diplomacy(), unit_focus_add(), unit_focus_advance(), unit_focus_set(), unit_focus_update(), gov_menu::update(), unit_actions::update_actions(), mr_menu::update_airlift_menu(), city_dialog::update_buy_button(), city_dialog::update_disabled(), city_dialog::update_prod_buttons(), ss_report::update_report(), plr_report::update_report(), city_dialog::update_units(), pageGame::updateInfoLabelTimeout(), pageGame::updateSidebarTooltips(), upgrade_canvas_clipboard(), and wakeup_sentried_units().
| struct byte_vector connection::queue |
Definition at line 251 of file connection.h.
Referenced by conn_compression_flush(), conn_compression_freeze(), connection_common_init(), free_compression_queue(), and send_packet_data().
| struct genhash** connection::received |
Definition at line 246 of file connection.h.
Referenced by conn_reset_delta_state(), free_packet_hashes(), and init_packet_hashs().
| int connection::request_id_of_currently_handled_packet |
Definition at line 179 of file connection.h.
| struct conn_list* connection::self |
Definition at line 150 of file connection.h.
Referenced by auth_handle_reply(), auth_user(), cmd_reply_line(), complain_ambiguous(), conn_set_access(), connection_attach_real(), connection_detach(), delegate_command(), establish_new_connection(), handle_chat_msg_req(), handle_edit_city(), handle_edit_city_create(), handle_edit_city_remove(), handle_edit_player(), handle_edit_player_create(), handle_edit_player_remove(), handle_edit_player_vision(), handle_edit_startpos(), handle_edit_startpos_full(), handle_edit_tile(), handle_edit_tile_extra(), handle_edit_tile_terrain(), handle_edit_toggle_fogofwar(), handle_edit_unit(), handle_edit_unit_create(), handle_edit_unit_remove(), handle_edit_unit_remove_by_id(), handle_report_req(), handle_save_scenario(), handle_single_want_hack_req(), init_connections(), lost_connection_to_client(), player_reply_dest(), report_achievements(), report_demographics(), send_city_turn_notifications(), send_delegation_info(), send_pending_events(), send_remove_team_votes(), send_running_votes(), and server_packet_input().
| struct socket_packet_buffer* connection::send_buffer |
Definition at line 145 of file connection.h.
Referenced by add_connection_data(), connection_common_close(), connection_common_init(), connection_do_buffer(), connection_do_unbuffer(), connection_send_data(), flush_connection_send_buffer_all(), flush_connection_send_buffer_packets(), flush_packets(), handle_conn_info(), and read_from_connection().
| struct genhash** connection::sent |
Definition at line 245 of file connection.h.
Referenced by conn_reset_delta_state(), free_packet_hashes(), and init_packet_hashs().
| struct { ... } connection::server |
Referenced by add_connection_data(), auth_get_ipaddr(), auth_handle_reply(), auth_process_status(), auth_user(), close_connection(), conn_is_kicked(), conn_pattern_match(), conn_set_access(), connection_delegate_restore(), connection_delegate_take(), connection_do_unbuffer(), connection_ping(), connection_send_data(), delegate_command(), establish_new_connection(), finish_processing_request(), flush_packets(), handle_conn_pong(), handle_login_request(), ignore_command(), incoming_client_packets(), kick_command(), lost_connection_to_client(), really_close_connections(), reject_new_connection(), restore_access_level(), server_conn_close_callback(), server_make_connection(), show_ignore(), start_processing_request(), unignore_command(), and write_socket_data().
| QIODevice* connection::sock = nullptr |
Definition at line 129 of file connection.h.
Referenced by client_conn_close_callback(), connection_common_close(), error_on_socket(), flush_connection_send_buffer_all(), flush_connection_send_buffer_packets(), flush_packets(), input_from_server(), make_connection(), read_from_connection(), server_make_connection(), try_to_connect(), and write_socket_data().
| struct { ... } connection::statistics |
Referenced by connection_common_init(), connection_send_data(), and send_packet_data().
| enum auth_status connection::status |
Definition at line 199 of file connection.h.
Referenced by script_server_do_file_shared(), and script_server_do_string_shared().
| bool connection::status |
Definition at line 222 of file connection.h.
| bool connection::used |
Definition at line 130 of file connection.h.
Referenced by add_connection_data(), mr_menu::back_to_menu(), client_kill_server(), client_start_server(), close_connections_and_socket(), conn_compression_flush(), conn_compression_thaw(), connection_common_close(), connection_common_init(), connection_do_buffer(), connection_do_unbuffer(), connection_send_data(), fc_client::current_page(), disconnect_from_server(), error_on_socket(), finish_processing_request(), flush_connection_send_buffer_all(), flush_connection_send_buffer_packets(), flush_packets(), get_packet_from_connection_raw(), init_connections(), input_from_server(), package_conn_info(), popup_quit_dialog(), read_from_connection(), really_close_connections(), remove_player_command(), server_make_connection(), fc_client::slot_disconnect(), and try_to_connect().
| char connection::username[MAX_LEN_NAME] |
Definition at line 151 of file connection.h.
Referenced by auth_get_username(), auth_handle_reply(), auth_process_status(), auth_user(), cancelvote_command(), check_vote(), conn_description(), conn_is_kicked(), conn_pattern_match(), connection_attach_real(), connection_delegate_restore(), connection_do_unbuffer(), connection_vote(), cut_client_connection(), delegate_command(), detach_command(), establish_new_connection(), firstlevel_command(), form_chat_name(), get_packet_from_connection_raw(), handle_conn_info(), handle_event(), handle_login_request(), handle_stdin_input_real(), lsend_vote_new(), observe_command(), package_conn_info(), real_output_window_append(), send_delegation_info(), send_packet_data(), server_make_connection(), set_cmdlevel(), page_pregame::start_page_menu(), and take_command().