/**
|
* @file
|
*
|
* @brief 网络代理服务
|
*
|
* @details 负责跨机器转发发布或请求消息
|
*/
|
|
#ifndef __NET_MOD_SERVER_SOCKET_H__
|
#define __NET_MOD_SERVER_SOCKET_H__
|
|
#include "net_mod_server_socket.h"
|
|
#ifdef __cplusplus
|
extern "C" {
|
#endif
|
|
|
/**
|
* @brief 创建net_mod_server_socket
|
* @param port 端口号
|
* @return net_mod_server_socket 句柄
|
*/
|
void *net_mod_server_socket_open(int port) ;
|
|
/**
|
* @brief 销毁net_mod_server_socket
|
*/
|
void net_mod_server_socket_close(void *_sockt) ;
|
|
/**
|
* @brief 启动服务
|
*
|
* @return 0 success, 其他 failture
|
*/
|
int net_mod_server_socket_start(void *_sockt);
|
|
|
|
|
|
#ifdef __cplusplus
|
}
|
#endif
|
|
#endif
|