12345678910111213141516171819202122232425262728293031323334 |
- #ifdef UA_ARCHITECTURE_VXWORKS
- #include <open62541/types.h>
- unsigned int UA_socket_set_blocking(UA_SOCKET sockfd){
- int on = FALSE;
- if(ioctl(sockfd, FIONBIO, &on) < 0)
- return UA_STATUSCODE_BADINTERNALERROR;
- return UA_STATUSCODE_GOOD;
- }
- unsigned int UA_socket_set_nonblocking(UA_SOCKET sockfd){
- int on = TRUE;
- if(ioctl(sockfd, FIONBIO, &on) < 0)
- return UA_STATUSCODE_BADINTERNALERROR;
- return UA_STATUSCODE_GOOD;
- }
- void UA_initialize_architecture_network(void){
- return;
- }
- void UA_deinitialize_architecture_network(void){
- return;
- }
- #endif
|