#include "stomp_status.h"
#include <string.h>
Go to the source code of this file.
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. STOMP message
Creates a new STOMP message object
- Parameters
-
status | A pointer to a status structure that will contain error details in case the message creation fails |
- Returns
- a new STOMP message object
Destroy a STOMP message object. The object will be unusable after destruction
- Parameters
-
message | A pointer to a pointer of a message object |
void stomp_message_format |
( |
stomp_message_t * |
message, |
|
|
const char * |
data, |
|
|
size_t |
len |
|
) |
| |
Writes data to the message object
- Parameters
-
message | the message object instance to write to |
data | the data to write |
len | the lenght of the data |