BLib Reference Manual |
---|
BProxyServer —
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);
"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);
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 |
gboolean b_proxy_server_send_packet (BProxyServer *server, BPacket *packet);
server : | |
packet : | |
Returns : |
gint b_proxy_server_num_clients (BProxyServer *server);
server : | |
Returns : |
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. |
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. |
<< BProxyClient | BReceiver >> |