Changeset 464 for azure_iot_hub_f767zi/trunk/wolfssl-4.7.0/wolfssl/wolfio.h
- Timestamp:
- Jun 22, 2021, 9:00:19 PM (3 years ago)
- Location:
- azure_iot_hub_f767zi/trunk/wolfssl-4.7.0
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
azure_iot_hub_f767zi/trunk/wolfssl-4.7.0/wolfssl/wolfio.h
r457 r464 95 95 #include <externs.h> 96 96 #include <errno.h> 97 #elif defined(WOLFSSL_LINUXKM) 98 /* the requisite linux/net.h is included in wc_port.h, with incompatible warnings masked out. */ 97 99 #elif defined(WOLFSSL_ATMEL) 98 100 #include "socket/include/socket.h" … … 127 129 #elif defined(WOLFSSL_ZEPHYR) 128 130 #include <net/socket.h> 131 #elif defined(MICROCHIP_PIC32) 132 #include <sys/errno.h> 129 133 #elif defined(HAVE_NETX) 130 134 #include "nx_api.h" 131 135 #include "errno.h" 136 #elif defined(FUSION_RTOS) 137 #include <sys/fcltypes.h> 138 #include <fclerrno.h> 139 #include <fclfcntl.h> 132 140 #elif !defined(WOLFSSL_NO_SOCK) 133 141 #include <sys/types.h> … … 159 167 #endif 160 168 161 #if defined(WOLFSSL_RENESAS_RA6M3G) /* Uses FREERTOS_TCP */169 #if defined(WOLFSSL_RENESAS_RA6M3G) || defined(WOLFSSL_RENESAS_RA6M3) /* Uses FREERTOS_TCP */ 162 170 #include <errno.h> 163 171 #endif … … 256 264 #define SOCKET_ECONNREFUSED NX_NOT_CONNECTED 257 265 #define SOCKET_ECONNABORTED NX_NOT_CONNECTED 266 #elif defined(FUSION_RTOS) 267 #define SOCKET_EWOULDBLOCK FCL_EWOULDBLOCK 268 #define SOCKET_EAGAIN FCL_EAGAIN 269 #define SOCKET_ECONNRESET FNS_ECONNRESET 270 #define SOCKET_EINTR FCL_EINTR 271 #define SOCKET_EPIPE FCL_EPIPE 272 #define SOCKET_ECONNREFUSED FCL_ECONNREFUSED 273 #define SOCKET_ECONNABORTED FNS_ECONNABORTED 258 274 #else 259 275 #define SOCKET_EWOULDBLOCK EWOULDBLOCK … … 287 303 #define SEND_FUNCTION NU_Send 288 304 #define RECV_FUNCTION NU_Recv 305 #elif defined(FUSION_RTOS) 306 #define SEND_FUNCTION FNS_SEND 307 #define RECV_FUNCTION FNS_RECV 289 308 #elif defined(WOLFSSL_ZEPHYR) 290 309 #ifndef WOLFSSL_MAX_SEND_SZ … … 294 313 #define SEND_FUNCTION send 295 314 #define RECV_FUNCTION recv 315 #elif defined(WOLFSSL_LINUXKM) 316 #define SEND_FUNCTION linuxkm_send 317 #define RECV_FUNCTION linuxkm_recv 296 318 #else 297 319 #define SEND_FUNCTION send … … 304 326 #ifdef USE_WINDOWS_API 305 327 typedef unsigned int SOCKET_T; 328 #ifndef SOCKET_INVALID 329 #define SOCKET_INVALID INVALID_SOCKET 330 #endif 306 331 #else 307 332 typedef int SOCKET_T; 333 #ifndef SOCKET_INVALID 334 #define SOCKET_INVALID -1 335 #endif 308 336 #endif 309 337 … … 360 388 #endif 361 389 #define StartTCP() 390 #elif defined(FUSION_RTOS) 391 #ifndef CloseSocket 392 #define CloseSocket(s) do { \ 393 int err; \ 394 FNS_CLOSE(s, &err); \ 395 } while(0) 396 #endif 362 397 #else 363 398 #ifndef CloseSocket … … 490 525 WOLFSSL_CTX *ctx; 491 526 WOLFSSL *ssl; 492 uint8_t*input_databuf;493 uint8_t*output_databuf;494 uint8_t*ssl_rx_databuf;527 byte *input_databuf; 528 byte *output_databuf; 529 byte *ssl_rx_databuf; 495 530 int ssl_rb_len; 496 531 int ssl_rb_off; … … 500 535 int closing; 501 536 uip_ipaddr_t peer_addr; 502 uint16_tpeer_port;537 word16 peer_port; 503 538 }; 504 539
Note:
See TracChangeset
for help on using the changeset viewer.