Top | ![]() |
![]() |
![]() |
![]() |
void | connected | Action |
void | disconnected | Action |
void | old-parse-messages | Action |
void | process-request | Action |
void | process-response | Action |
GebrCommProtocolSocket *
gebr_comm_protocol_socket_new_from_socket
(GebrCommStreamSocket *socket
);
gboolean gebr_comm_protocol_socket_connect (GebrCommProtocolSocket *self
,GebrCommSocketAddress *socket_address
,gboolean wait
);
void
gebr_comm_protocol_socket_disconnect (GebrCommProtocolSocket *self
);
GebrCommHttpMsg * gebr_comm_protocol_socket_send_request (GebrCommProtocolSocket *self
,GebrCommHttpRequestMethod method
,const gchar *url
,GebrCommJsonContent *content
);
void gebr_comm_protocol_socket_send_response (GebrCommProtocolSocket *self
,int status_code
,GebrCommJsonContent *content
);
void gebr_comm_protocol_socket_resend_message (GebrCommProtocolSocket *self
,gboolean blocking
,struct gebr_comm_message *message
);
void gebr_comm_protocol_socket_oldmsg_send (GebrCommProtocolSocket *self
,gboolean blocking
,struct gebr_comm_message_def gebr_comm_message_def
,guint n_params
,...
);
void gebr_comm_protocol_socket_return_message (GebrCommProtocolSocket *self
,gboolean blocking
,struct gebr_comm_message_def ret_msg
,guint n_params
,...
);
GList * gebr_comm_protocol_socket_oldmsg_split (GString *arguments
,guint parts
);
#define GEBR_COMM_PROTOCOL_SOCKET_TYPE (gebr_comm_protocol_socket_get_type())
struct GebrCommProtocolSocketClass { GObjectClass parent; /* signals */ void (*connected)(GebrCommProtocolSocket *socket); void (*disconnected)(GebrCommProtocolSocket *socket); void (*process_request)(GebrCommProtocolSocket *socket, GebrCommHttpMsg * request); void (*process_response)(GebrCommProtocolSocket *socket, GebrCommHttpMsg * request, GebrCommHttpMsg * response); void (*old_parse_messages)(GebrCommProtocolSocket *socket); };
“connected”
signalvoid user_function (GebrCommProtocolSocket *gebrcommprotocolsocket, gpointer user_data)
Flags: Action
“disconnected”
signalvoid user_function (GebrCommProtocolSocket *gebrcommprotocolsocket, gpointer user_data)
Flags: Action
“old-parse-messages”
signalvoid user_function (GebrCommProtocolSocket *gebrcommprotocolsocket, gpointer user_data)
Flags: Action
“process-request”
signalvoid user_function (GebrCommProtocolSocket *gebrcommprotocolsocket, gpointer arg1, gpointer user_data)
Flags: Action
“process-response”
signalvoid user_function (GebrCommProtocolSocket *gebrcommprotocolsocket, gpointer arg1, gpointer arg2, gpointer user_data)
Flags: Action