18#ifndef __VSF_SOCKET_H__
19#define __VSF_SOCKET_H__
25#if VSF_USE_TCPIP == ENABLED
30#undef __VSF_SOCKET_PUBLIC_CONST__
31#if defined(__VSF_SOCKET_CLASS_IMPLEMENT)
32#undef __VSF_SOCKET_CLASS_IMPLEMENT
33# define __VSF_CLASS_IMPLEMENT__
34# define __VSF_SOCKET_PUBLIC_CONST__
35#elif defined(__VSF_SOCKET_CLASS_INHERIT__)
36#undef __VSF_SOCKET_CLASS_INHERIT__
37# define __VSF_CLASS_INHERIT__
38# define __VSF_SOCKET_PUBLIC_CONST__
40# define __VSF_SOCKET_PUBLIC_CONST__ const
106#undef __VSF_SOCKET_PUBLIC_CONST__
136#if VSF_USE_LWIP == ENABLED
139#if defined(__WIN__) && VSF_TCPIP_USE_WINSOCK == ENABLED
vsf_err_t
Definition __type.h:42
Definition vsf_socket.h:77
Definition vsf_socket.h:100
unsigned short uint16_t
Definition lvgl.h:41
#define gethostbyname
Definition netdb.h:72
#define vsf_dcl_class
Definition ooc_class.h:46
#define vsf_class(__name)
Definition ooc_class.h:48
#define listen
Definition socket.h:102
#define accept
Definition socket.h:98
#define socket
Definition socket.h:110
#define connect
Definition socket.h:101
#define recv
Definition socket.h:103
#define bind
Definition socket.h:100
#define send
Definition socket.h:106
Definition vsf_netdrv.h:90
Definition vsf_socket.h:72
vk_netdrv_addr_t addr
Definition vsf_socket.h:74
uint16_t port
Definition vsf_socket.h:73
#define close
Definition unistd.h:122
vsf_err_t vk_dns_gethostbyname(const char *name, vk_netdrv_addr_t *addr)
Definition vsf_socket.c:176
vsf_err_t vk_socket_listen(vk_socket_t *socket, int backlog)
Definition vsf_socket.c:85
vsf_err_t vk_socket_recvfrom(vk_socket_t *socket, void *buf, size_t len, int flags, const vk_socket_addr_t *remote_addr)
Definition vsf_socket.c:158
vsf_err_t vk_socket_connect(vk_socket_t *socket, vk_socket_addr_t *remote_addr)
Definition vsf_socket.c:97
@ VSF_SOCKET_IPPROTO_UDP
Definition vsf_socket.h:60
@ VSF_SOCKET_IPPROTO_TCP
Definition vsf_socket.h:59
vsf_err_t vk_socket_bind(vk_socket_t *socket, vk_socket_addr_t *addr)
Definition vsf_socket.c:73
@ VSF_SOCKET_AF_INET6
Definition vsf_socket.h:55
@ VSF_SOCKET_AF_INET
Definition vsf_socket.h:54
vsf_err_t vk_socket_send(vk_socket_t *socket, const void *buf, size_t len, int flags)
Definition vsf_socket.c:121
vsf_err_t vk_socket_close(vk_socket_t *socket)
Definition vsf_socket.c:61
#define __VSF_SOCKET_PUBLIC_CONST__
Definition vsf_socket.h:40
vsf_err_t vk_socket_sendto(vk_socket_t *socket, const void *buf, size_t len, int flags, const vk_socket_addr_t *remote_addr)
Definition vsf_socket.c:145
void vk_socket_set_default_op(vk_socket_op_t *op)
Definition vsf_socket.c:171
vsf_err_t vk_socket_open(vk_socket_t *socket, int domain, int protocol)
Definition vsf_socket.c:49
vsf_err_t vk_socket_accept(vk_socket_t *socket, vk_socket_addr_t *remote_addr)
Definition vsf_socket.c:109
vk_socket_feature_t
Definition vsf_socket.h:66
@ VSF_SOCKET_PEDA
Definition vsf_socket.h:68
@ VSF_SOCKET_THREAD
Definition vsf_socket.h:67
vsf_err_t vk_socket_recv(vk_socket_t *socket, void *buf, size_t len, int flags)
Definition vsf_socket.c:133