YAMI4Industry
Data Structures | Enumerations | Functions
channel.h File Reference
#include "callbacks.h"
#include "common.h"
#include "limits.h"
#include "options.h"
#include <stddef.h>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  yami_channel
 

Enumerations

enum  yami_protocol { yami_tcp, yami_udp }
 

Functions

void yami_channel_init (struct yami_channel *self)
 
int32_t yami_channel_is_open (const struct yami_channel *self)
 
int32_t yami_channel_name_cmp (const struct yami_channel *self, const char target[])
 
enum yami_result yami_channel_open (struct yami_channel *self, const char target[], const struct yami_options *options, yami_io_error_function io_error_callback)
 
enum yami_result yami_channel_close (struct yami_channel *self, yami_io_error_function io_error_callback)
 
enum yami_result yami_channel_post_raw_message (struct yami_channel *self, uint32_t core_message_id, const uint8_t header[], size_t header_size, const uint8_t body[], size_t body_size)
 
enum yami_result yami_channel_post_message (struct yami_channel *self, const char object_name[], const char message_name[], int64_t message_id, uint32_t core_message_id, const uint8_t body[], size_t body_size)
 
enum yami_result yami_channel_post_reply (struct yami_channel *self, int64_t message_id, uint32_t core_message_id, const uint8_t body[], size_t body_size)
 
enum yami_result yami_channel_post_reject (struct yami_channel *self, int64_t message_id, uint32_t core_message_id, const char reason[])
 
enum yami_result yami_channel_write_some_data (struct yami_channel *self, yami_io_error_function io_error_callback)
 
enum yami_result yami_channel_read_some_data (struct yami_channel *self, yami_io_error_function io_error_callback)
 
void yami_channel_clean_input_buffer (struct yami_channel *const self)
 
enum yami_result yami_channel_check_udp_packet (struct yami_channel *self)
 

Enumeration Type Documentation

Enumerator
yami_tcp 
yami_udp 

Function Documentation

enum yami_result yami_channel_check_udp_packet ( struct yami_channel self)
void yami_channel_clean_input_buffer ( struct yami_channel *const  self)
enum yami_result yami_channel_close ( struct yami_channel self,
yami_io_error_function  io_error_callback 
)
void yami_channel_init ( struct yami_channel self)
int32_t yami_channel_is_open ( const struct yami_channel self)
int32_t yami_channel_name_cmp ( const struct yami_channel self,
const char  target[] 
)
enum yami_result yami_channel_open ( struct yami_channel self,
const char  target[],
const struct yami_options options,
yami_io_error_function  io_error_callback 
)
enum yami_result yami_channel_post_message ( struct yami_channel self,
const char  object_name[],
const char  message_name[],
int64_t  message_id,
uint32_t  core_message_id,
const uint8_t  body[],
size_t  body_size 
)
enum yami_result yami_channel_post_raw_message ( struct yami_channel self,
uint32_t  core_message_id,
const uint8_t  header[],
size_t  header_size,
const uint8_t  body[],
size_t  body_size 
)
enum yami_result yami_channel_post_reject ( struct yami_channel self,
int64_t  message_id,
uint32_t  core_message_id,
const char  reason[] 
)
enum yami_result yami_channel_post_reply ( struct yami_channel self,
int64_t  message_id,
uint32_t  core_message_id,
const uint8_t  body[],
size_t  body_size 
)
enum yami_result yami_channel_read_some_data ( struct yami_channel self,
yami_io_error_function  io_error_callback 
)
enum yami_result yami_channel_write_some_data ( struct yami_channel self,
yami_io_error_function  io_error_callback 
)