litestomp
Functions
stomp_ex_properties.c File Reference
#include "stomp_ex_properties.h"
#include "stomp_status.h"

Functions

void stomp_exchange_add (stomp_exchange_properties_t *properties, const char *name, const char *value)
 
const char * stomp_exchange_get (stomp_exchange_properties_t *properties, const char *name)
 
void stomp_exchange_clear (stomp_exchange_properties_t *properties)
 
stomp_status_code_t stomp_exchange_util_ctime (stomp_exchange_properties_t *properties, stomp_status_t *stat)
 

Function Documentation

void stomp_exchange_add ( stomp_exchange_properties_t properties,
const char *  name,
const char *  value 
)

Copyright 2016 Otavio Rodolfo Piske

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Examples:
messenger/client.c.
void stomp_exchange_clear ( stomp_exchange_properties_t properties)

Clears the exchange properties

Parameters
propertiesthe properties data structure to be read
const char* stomp_exchange_get ( stomp_exchange_properties_t properties,
const char *  name 
)

Gets a property from the exchange

Parameters
propertiesthe properties data structure to be read
namethe name of the property
Returns
value the value of the property
Examples:
messenger/server.c.
stomp_status_code_t stomp_exchange_util_ctime ( stomp_exchange_properties_t properties,
stomp_status_t stat 
)

Appends the creation time to the exchange properties. It will be added in the transaction as "creation"

Parameters
propertiesthe properties data structure to be read
Examples:
messenger/client.c.