BProxyServer
3
BLIB Library
BProxyServer
Synopsis
struct BProxyServer;
BProxyServer* b_proxy_server_new (gint port,
GError **error);
gboolean b_proxy_server_send_packet (BProxyServer *server,
BPacket *packet);
gint b_proxy_server_num_clients (BProxyServer *server);
Object Hierarchy
GObject
+----BReceiver
+----BProxyServer
Signal Prototypes
"client-added"
void user_function (BProxyServer *bproxyserver,
gchar *arg1,
gint arg2,
gpointer user_data);
"client-removed"
void user_function (BProxyServer *bproxyserver,
gchar *arg1,
gint arg2,
gpointer user_data);
Description
Details
struct BProxyServer
struct BProxyServer;
b_proxy_server_new ()
BProxyServer* b_proxy_server_new (gint port,
GError **error);
Creates a new BProxyServer object, ready to use.
port :
the local port to listen to for heartbeat packages
error :
return location for a possible error
Returns : a newly allocate BProxyServer object
b_proxy_server_send_packet ()
gboolean b_proxy_server_send_packet (BProxyServer *server,
BPacket *packet);
server :
packet :
Returns :
b_proxy_server_num_clients ()
gint b_proxy_server_num_clients (BProxyServer *server);
server :
Returns :
Signals
The "client-added" signal
void user_function (BProxyServer *bproxyserver,
gchar *arg1,
gint arg2,
gpointer user_data);
bproxyserver :
the object which received the signal.
arg1 :
arg2 :
user_data :
user data set when the signal handler was connected.
The "client-removed" signal
void user_function (BProxyServer *bproxyserver,
gchar *arg1,
gint arg2,
gpointer user_data);
bproxyserver :
the object which received the signal.
arg1 :
arg2 :
user_data :
user data set when the signal handler was connected.