YAMI4Industry
Functions
channel.c File Reference
#include "channel.h"
#include "network_constants.h"
#include "network_utils.h"
#include "serialization.h"
#include "utils.h"

Functions

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

Function Documentation

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