1 Reply Latest reply on Dec 14, 2018 1:51 AM by ZhengbaoZ_96

    Can CYW943907AEVAL1F support the raw socket API?

      I want to receive the original data packet from the Ethernet port. I need to use the raw socket, but I have not found the relevant API. Is it supported? Please tell me if anyone has used it. Thank you.

        • 1. Re: Can CYW943907AEVAL1F support the raw socket API?
          ZhengbaoZ_96

          hello:

          need you to check if below interface is you wanted:

          \43xxx_Wi-Fi\WICED\network\NetX_Duo\ver5.10_sp3\netx_bsd_layer\nxd_bsd.h

           

           

          UINT nx_bsd_socket_set_inherited_settings(UINT master_sock_id, UINT secondary_sock_id);

          INT recvfrom(INT sockID, CHAR *buffer, INT buffersize, INT flags,struct sockaddr *fromAddr, INT *fromAddrLen);

          INT recv(INT sockID, VOID *rcvBuffer, INT bufferLength, INT flags);

          INT sendto(INT sockID, CHAR *msg, INT msgLength, INT flags, struct sockaddr *destAddr, INT destAddrLen);

          INT send(INT sockID, const CHAR *msg, INT msgLength, INT flags);

          INT select(INT nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);

          INT soc_close( INT sockID);

          INT socket(INT protocolFamily, INT type, INT protocol);

           

          Actually, we didn't use this interface directly into application layer.

          1 of 1 people found this helpful