-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathmre_tcp_socket.h
36 lines (33 loc) · 1.05 KB
/
mre_tcp_socket.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/*
mre_tcp_socket.h Tcp socket stuff's Header file
*/
/*****************************************************************************
* FUNCTION
* mre_tcp_connection Declaration
*
* DESCRIPTION
* Connect with specified URL through TCP
*
* PARAMETERS
* APN [IN] specify wheather APN is CMNET or CMWAP
* URL [IN] url to connect to
*
* RETURNS
* VOID
*****************************************************************************/
void mre_tcp_connection(VMINT apn, VMSTR url, void (*tcp_callback)(VMINT handle, VMINT event));
/*****************************************************************************
* FUNCTION
* mre_tcp_callback_application
*
* DESCRIPTION
* Displays tcp callback application
*
* PARAMETERS
* handle [IN]
* event [IN] connection handle returned by vm_tcp_connect()
*
* RETURNS
* VOID
*****************************************************************************/
void mre_tcp_callback_application(VMINT handle, VMINT event);