utf-8 without BOM will be warned by vc.

This commit is contained in:
郑树新 2017-08-09 16:15:01 +08:00
parent dcaec58d47
commit 08d61b31f6
5 changed files with 59 additions and 59 deletions

View File

@ -17,13 +17,13 @@ public:
virtual ~tcp_client(void);
/**
*
* @param {const void*}
* @param len {unsigned int}
* @param out {string*} NULL
* NULL
*
* @return {bool}
*
* @param {const void*}
* @param len {unsigned int}
* @param out {string*} NULL
* NULL
*
* @return {bool}
*/
bool send(const void* data, unsigned int len, string* out = NULL);

View File

@ -20,8 +20,8 @@ class tcp_pool;
class string;
/**
* tcp_manager
*
* tcp_manager
*
*/
class ACL_CPP_API tcp_ipc
{
@ -30,90 +30,90 @@ public:
~tcp_ipc(void);
/**
*
* @param max {int} <= 0
*
* @param max {int} <= 0
* @return {tcp_ipc&}
*/
tcp_ipc& set_limit(int max);
/**
*
* @param ttl {int}
*
* @param ttl {int}
* @return {tcp_ipc&}
*/
tcp_ipc& set_idle(int ttl);
/**
*
* @param conn_timeout {int}
*
* @param conn_timeout {int}
* @return {tcp_ipc&}
*/
tcp_ipc& set_conn_timeout(int conn_timeout);
/**
*
* @param timeout {int}
*
* @param timeout {int}
* @return {tcp_ipc&}
*/
tcp_ipc& set_rw_timeout(int timeout);
/**
* TCP
* TCP
* @return {tcp_manager&}
*/
tcp_manager& get_manager(void) const;
/**
*
* @param addr {const char*} IP:PORT
*
* @param addr {const char*} IP:PORT
* @return {tcp_ipc&}
*/
tcp_ipc& add_addr(const char* addr);
/**
*
*
*
* @param addr {const char*} IP:PORT
*
*
*
* @param addr {const char*} IP:PORT
* @return {tcp_ipc&}
*/
tcp_ipc& del_addr(const char* addr);
/**
*
* @param addr {const char*} IP:PORT
*
* @param addr {const char*} IP:PORT
* @return {bool}
*/
bool addr_exist(const char* addr);
/**
*
* @param addrs {std::vector<string>&}
*
* @param addrs {std::vector<string>&}
*/
void get_addrs(std::vector<string>& addrs);
/**
*
* @param addr {const char*}
* @param {const void*}
* @param len {unsigned int}
* @param out {string*} NULL
* NULL
*
* @return {bool}
*
* @param addr {const char*}
* @param {const void*}
* @param len {unsigned int}
* @param out {string*} NULL
* NULL
*
* @return {bool}
*/
bool send(const char* addr, const void* data, unsigned int len,
string* out = NULL);
/**
*
* @param {const void*}
* @param len {unsigned int}
* @param exclusive {bool} 广线线
*
* @param check_result {bool}
* @param nerr {unsigned *} NULL
* @return {size_t}
*
* @param {const void*}
* @param len {unsigned int}
* @param exclusive {bool} 广线线
*
* @param check_result {bool}
* @param nerr {unsigned *} NULL
* @return {size_t}
*/
size_t broadcast(const void* data, unsigned int len,
bool exclusive = true, bool check_result = false,

View File

@ -15,13 +15,13 @@ public:
virtual ~tcp_pool(void);
/**
*
* @param {const void*}
* @param len {unsigned int}
* @param out {string*} NULL
* NULL
*
* @return {bool}
*
* @param {const void*}
* @param len {unsigned int}
* @param out {string*} NULL
* NULL
*
* @return {bool}
*/
bool send(const void* data, unsigned int len, string* out = NULL);

View File

@ -19,7 +19,7 @@ class socket_stream;
class string;
/**
* tcp ipc
* tcp ipc
*/
class ACL_CPP_API tcp_reader
{
@ -28,8 +28,8 @@ public:
~tcp_reader(void) {}
/**
*
* @param out {string&} out
*
* @param out {string&} out
*/
bool read(string& out);

View File

@ -21,7 +21,7 @@ namespace acl
class socket_stream;
/**
* tcp ipc
* tcp ipc
*/
class ACL_CPP_API tcp_sender
{
@ -30,10 +30,10 @@ public:
~tcp_sender(void);
/**
*
* @param data {const void*}
* @param len {unsigned int}
* @return {bool}
*
* @param data {const void*}
* @param len {unsigned int}
* @return {bool}
*/
bool send(const void* data, unsigned int len);