I want to filter packets by differentiating if they are of connect request or if they are a read or write message. Sorry for not being able to explain correctly. My FRDM K64F is acting as a TCP Server. Now whenever a fnet_socket_set_callback_on_rx occurs I want to check if that packet contains the Connect request from a client or a read/write request. How do I see the entire contents of a TCP packet?
Hello, Is there a way to differentiate b/w connect,read,write and close requests preferably by assigning callbacks? Regards, Abdullah Shafiq
What is the difference between fnet_shell_println and fnet_printf. I am a little confused because both print on the serial
But isnt he default interface set to ETH0 by default. If not how do I use fnet_netif_set_default ? Is the below method correct? fnet_netif_desc_t netif; fnet_netif_set_default(netif);
While working on KDS, I am using the Shell+freertos example. The initialization code remains unchanged. In a seperate task that I have created I try to change the IP by fnet_netif_desc_t netif; netif = fnet_netif_get_default(); fnet_netif_set_ip4_addr(netif, FNET_IP4_ADDR_INIT(192,168,1,220), FNET_IP4_ADDR_INIT(255,255,255,0)); fnet_netif_set_ip4_gateway(netif, FNET_IP4_ADDR_INIT(192,168,1,100)); but if I enter info in the shell example I get Ip = 0.0.0.0 The task that I have created is not being...
Hello, I am new in this field so sorry if this question seems noobish to you. Can FNET examples be ran on MCUXpresso?
Hello, Yes I have made this code by understanding demo example. The reason for creating these tasks is that I want multiple tcp clients to connect. Sorry but I am unable to find the definition of fnet_socket_callback_on_rx. I want to understand the interrupt handling that you have done. in fnet_Socket :- /* Socket activity event handler.*/ static void (*fnet_socket_callback_on_rx)(void) ; fnet_event_desc_t fnet_socket_event_rx; Where is fnet_socket_callback_on_rx defined?
Thank you so much :)