Hi Punit,
you can try examples in Software Development Kit for Kinetis MCUs|Freescale .
We have created for examples under lwip and rtcs stacks.
For RTCS you can find these examples:
Ethernet to serial example application, which demonstrates a simple character passing between
UART console and socket. The application creates a listening socket on port 23 (this port is default and can be changed with demo configuration) to which a TCP/IP connection can be established. This example supports both IPv4 and IPv6 protocols.
also you can try HTTP server application, which demonstrates different features of the RTCS HTTP server. The example allows to start one or more HTTP servers on IPv4 and/or IPv6 addresses, demonstrating use of both static and dynamic web pages with CGI and server WebSocket plugin.
Shell Application, which demonstrates different features of the RTCS TCP/IP stack. The example allows performing initialization and configuration of network interfaces, running RTCS application services like DHCP, DNS, FTP, TFTP, Telnet, SMTP and others.
and SNMP example, which demonstrates how SNMP (Simple Network Management Protocol)
uses Trap command message to communicate between the manager and the agent.
For questions about KSDK, please refer to Kinetis Software Development Kit
I hope this helps.
Best Regards,
Iva