随笔 - 1  文章 - 0  trackbacks - 0
<2026年6月>
31123456
78910111213
14151617181920
21222324252627
2829301234
567891011

常用链接

留言簿

随笔档案

文章分类

文章档案

搜索

  •  

最新评论

 1 /**********************************************************
 2     File Name:    socketclient.h  (头文件)
 4 **********************************************************/
 5 #ifndef _SOCKET_CLIENT_
 6 #define _SOCKET_CLIENT_
 7 
 8 #ifdef __cplusplus
 9 extern "C" {
10 #endif
11 
12 //api1
13 //init
14 int socketclient_init(void ** handle)
15 {
16     return 0;
17 }
18 //send
19 int socketclient_send(void * handle , unsigned char * buf , int buflen )
20 {
21     return 0;
22 }
23 //recv
24 int socketclient_recv(void * handle , unsigned char * buf , int * buflen)
25 {
26     return 0;
27 }
28 //destroy 
29 int socketclient_destroy(void * handle)
30 {
31     
32 }
33 
34 
35 //api2
36 //initialize
37 int socketclient2_init(void ** handle)
38 {
39     return 0;
40 }
41 //send
42 int socketclient2_send(void * handle , unsigned char * buf , int buflen)
43 {
44     return 0;
45 }
46 //recv
47 int socketclient2_recv(void * handle , unsigned char ** buf , int * buflen)
48 {
49     return 0;
50 }
   int  socketclient2_free(unsigned char ** buf)
   {
        return 0;
   }
51 //destroy
52 int socketclient2_destroy(void ** handle)
53 {
54     return 0;    
55 } 
56 
57 
58 #ifdef __cplusplus
59 }
60 #endif
61 
62 #endif
63 
posted on 2017-07-10 19:07 silvercell 阅读(90) 评论(0)  编辑 收藏 引用 所属分类: c/cpp_codes