cancel
Showing results for 
Search instead for 
Did you mean: 

WICED Studio Wi-Fi Combo

Anonymous
Not applicable

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.

0 Likes
1 Solution
Zhengbao_Zhang
Moderator
Moderator

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.

View solution in original post

1 Reply
Zhengbao_Zhang
Moderator
Moderator

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.

View solution in original post