diff --git a/doc/F-Stack_API_Reference.md b/doc/F-Stack_API_Reference.md index 57173765..051d385d 100644 --- a/doc/F-Stack_API_Reference.md +++ b/doc/F-Stack_API_Reference.md @@ -195,16 +195,16 @@ However, it is currently only supported before F-Stack is started. Use connection pool to send and recv tcp packet, keep-alive default are 10 mintues. The parameter of buf can't use `static`. ​ - enum MT\_TCP\_CONN\_TYPE + enum MT_TCP_CONN_TYPE { - MT\_TCP\_SHORT = 1, - MT\_TCP\_LONG = 2, - MT\_TCP\_SHORT\_SNDONLY = 3, - MT\_TCP\_LONG\_SNDONLY = 4, - MT\_TCP\_BUTT + MT_TCP_SHORT = 1, + MT_TCP_LONG = 2, + MT_TCP_SHORT_SNDONLY = 3, + MT_TCP_LONG_SNDONLY = 4, + MT_TCP_BUTT }; - int mt\_tcpsendrcv\_ex(struct sockaddr_in* dst, void* pkg, int len, void* rcv_buf, int* buf_size, int timeout, MtFuncTcpMsgLen func, MT_TCP_CONN_TYPE type = MT_TCP_LONG); + int mt_tcpsendrcv_ex(struct sockaddr_in* dst, void* pkg, int len, void* rcv_buf, int* buf_size, int timeout, MtFuncTcpMsgLen func, MT_TCP_CONN_TYPE type = MT_TCP_LONG); Tcp send and recv interface, you can choose if the connection is keep-alive or close.The parameter of buf can't use `static`.