mirror of https://github.com/F-Stack/f-stack.git
Update F-Stack_API_Reference.md
This commit is contained in:
parent
82aa761e87
commit
da4f19c1df
|
@ -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`.
|
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_SHORT = 1,
|
||||||
MT\_TCP\_LONG = 2,
|
MT_TCP_LONG = 2,
|
||||||
MT\_TCP\_SHORT\_SNDONLY = 3,
|
MT_TCP_SHORT_SNDONLY = 3,
|
||||||
MT\_TCP\_LONG\_SNDONLY = 4,
|
MT_TCP_LONG_SNDONLY = 4,
|
||||||
MT\_TCP\_BUTT
|
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`.
|
Tcp send and recv interface, you can choose if the connection is keep-alive or close.The parameter of buf can't use `static`.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue