can anyone provide samples for transferring data through network in RCM4000?

Hello, Please explain what exactly you want to do?

If you would like to transfer data in the network ,you can go for UDP or TCP, there are some sample applications under Dynamic C installation path below. It may help you
C:\DCRABBIT_10.72\Samples cpip\udp