123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- #ifdef UA_ARCHITECTURE_FREERTOSLWIP
- #include <open62541/types.h>
- unsigned int UA_socket_set_blocking(UA_SOCKET sockfd){
- int on = 0;
- if(lwip_ioctl(sockfd, FIONBIO, &on) < 0)
- return UA_STATUSCODE_BADINTERNALERROR;
- return UA_STATUSCODE_GOOD;
- }
- unsigned int UA_socket_set_nonblocking(UA_SOCKET sockfd){
- int on = 1;
- if(lwip_ioctl(sockfd, FIONBIO, &on) < 0)
- return UA_STATUSCODE_BADINTERNALERROR;
- return UA_STATUSCODE_GOOD;
- }
- int gethostname_lwip(char* name, size_t len){
-
- return -1;
- }
- void UA_initialize_architecture_network(void){
- return;
- }
- void UA_deinitialize_architecture_network(void){
- return;
- }
- #if UA_IPV6
- # if LWIP_VERSION_IS_RELEASE
- unsigned int lwip_if_nametoindex(const char *ifname){
- return 1;
- }
- # endif
- #endif
- #endif
|