@@ -76,7 +76,7 @@ struct socket_callback_t {
76
76
* @param len Length of data
77
77
* @return Always return 0, return value is unused
78
78
*/
79
- int (* recv_callback )(int sockid , const unsigned char * buf , int len );
79
+ int (* recv_callback )(int sockid , const void * buf , int len );
80
80
/**
81
81
* Socket transmit callback
82
82
* @param sockid Socket ID
@@ -86,7 +86,7 @@ struct socket_callback_t {
86
86
* @param arg user argument passed during send
87
87
* @return Always return 0, return value is unused
88
88
*/
89
- int (* xmit_callback )(int sockid , int result , unsigned char * buf , int len , void * arg );
89
+ int (* xmit_callback )(int sockid , int result , const void * buf , int len , void * arg );
90
90
};
91
91
92
92
/**
@@ -166,7 +166,7 @@ int socket_close(int id);
166
166
* @param arg [in] User data argument, This argument will be passed to transmit callback function
167
167
* @return 0 on success, negative value on error
168
168
*/
169
- int socket_send (int id , const unsigned char * buf , int len , int timeout , void * arg );
169
+ int socket_send (int id , const void * buf , int len , int timeout , void * arg );
170
170
171
171
/**
172
172
* Get socket status
0 commit comments