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 <anchor id="BProxyServer-struct"/>struct BProxyServer struct BProxyServer; <anchor id="b-proxy-server-new"/>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 <anchor id="b-proxy-server-send-packet"/>b_proxy_server_send_packet () gboolean b_proxy_server_send_packet (BProxyServer *server, BPacket *packet); server : packet : Returns : <anchor id="b-proxy-server-num-clients"/>b_proxy_server_num_clients () gint b_proxy_server_num_clients (BProxyServer *server); server : Returns : Signals <anchor id="BProxyServer-client-added"/>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. <anchor id="BProxyServer-client-removed"/>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.