mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-09-21 02:06:14 +08:00
[at_socket] update AT_SW_VERSION and adjust at_socket_ops
This commit is contained in:
@@ -66,12 +66,12 @@ typedef void (* at_socket_callback)(struct at_socket *conn, int event, uint16_t
|
||||
/* AT socket operations function */
|
||||
struct at_socket_ops
|
||||
{
|
||||
int (*at_socket)(struct at_device *device, enum at_socket_type type);
|
||||
int (*at_connect)(struct at_socket *socket, char *ip, int32_t port, enum at_socket_type type, rt_bool_t is_client);
|
||||
int (*at_closesocket)(struct at_socket *socket);
|
||||
int (*at_send)(struct at_socket *socket, const char *buff, size_t bfsz, enum at_socket_type type);
|
||||
int (*at_domain_resolve)(const char *name, char ip[16]);
|
||||
void (*at_set_event_cb)(at_socket_evt_t event, at_evt_cb_t cb);
|
||||
int (*at_socket)(struct at_device *device, enum at_socket_type type);
|
||||
};
|
||||
|
||||
/* AT receive package list structure */
|
||||
|
||||
Reference in New Issue
Block a user