123456789101112131415161718192021222324252627282930 |
- /* This work is licensed under a Creative Commons CCZero 1.0 Universal License.
- * See http://creativecommons.org/publicdomain/zero/1.0/ for more information.
- *
- * Copyright 2018 (c) Jose Cabral, fortiss GmbH
- */
- #include "ua_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;
- }
|