syslog-ng source
stomp.h File Reference
#include "gsocket.h"
#include <glib.h>
Include dependency graph for stomp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  stomp_connection
 
struct  stomp_frame
 

Functions

void stomp_frame_init (stomp_frame *frame, const char *command, int command_len)
 
void stomp_frame_add_header (stomp_frame *frame, const char *name, const char *value)
 
void stomp_frame_set_body (stomp_frame *frame, const char *body, int body_len)
 
int stomp_frame_deinit (stomp_frame *frame)
 
int stomp_connect (stomp_connection **connection_ref, char *hostname, int port)
 
int stomp_disconnect (stomp_connection **connection_ref)
 
int stomp_write (stomp_connection *connection, stomp_frame *frame)
 
int stomp_read (stomp_connection *connection, stomp_frame **frame)
 
int stomp_parse_frame (GString *data, stomp_frame *frame)
 
int stomp_receive_frame (stomp_connection *connection, stomp_frame *frame)
 
GString * create_gstring_from_frame (stomp_frame *frame)
 

Function Documentation

◆ create_gstring_from_frame()

GString* create_gstring_from_frame ( stomp_frame frame)

◆ stomp_connect()

int stomp_connect ( stomp_connection **  connection_ref,
char *  hostname,
int  port 
)

◆ stomp_disconnect()

int stomp_disconnect ( stomp_connection **  connection_ref)

◆ stomp_frame_add_header()

void stomp_frame_add_header ( stomp_frame frame,
const char *  name,
const char *  value 
)

◆ stomp_frame_deinit()

int stomp_frame_deinit ( stomp_frame frame)

◆ stomp_frame_init()

void stomp_frame_init ( stomp_frame frame,
const char *  command,
int  command_len 
)

◆ stomp_frame_set_body()

void stomp_frame_set_body ( stomp_frame frame,
const char *  body,
int  body_len 
)

◆ stomp_parse_frame()

int stomp_parse_frame ( GString *  data,
stomp_frame frame 
)

◆ stomp_read()

int stomp_read ( stomp_connection connection,
stomp_frame **  frame 
)

◆ stomp_receive_frame()

int stomp_receive_frame ( stomp_connection connection,
stomp_frame frame 
)

◆ stomp_write()

int stomp_write ( stomp_connection connection,
stomp_frame frame 
)