Freeciv-3.2
Loading...
Searching...
No Matches
Functions
connectdlg.c File Reference
#include <errno.h>
#include "fcintl.h"
#include "log.h"
#include "support.h"
#include "gui_stub.h"
#include "connectdlg_g.h"
#include "chatline_common.h"
#include "client_main.h"
#include "connectdlg.h"
#include "packhand_gen.h"

Go to the source code of this file.

Functions

void gui_close_connection_dialog (void)
 
void handle_authentication_req (enum authentication_type type, const char *message)
 
void handle_game_load (bool load_successful, const char *filename)
 
void gui_server_connect (void)
 

Function Documentation

◆ gui_close_connection_dialog()

void gui_close_connection_dialog ( void  )

Close and destroy the dialog. But only if we don't have a local server running (that we started).

Definition at line 41 of file connectdlg.c.

Referenced by setup_gui_funcs().

◆ gui_server_connect()

void gui_server_connect ( void  )

Provide an interface for connecting to a Freeciv server.

Definition at line 96 of file connectdlg.c.

Referenced by setup_gui_funcs().

◆ handle_authentication_req()

void handle_authentication_req ( enum authentication_type  type,
const char message 
)

Configure the dialog depending on what type of authentication request the server is making.

Definition at line 50 of file connectdlg.c.

◆ handle_game_load()

void handle_game_load ( bool  load_successful,
const char filename 
)

Provide a packet handler for packet_game_load.

This regenerates the player information from a loaded game on the server.

Definition at line 87 of file connectdlg.c.