PIC24 + ENC28J60 simultaneous client and server
I want to use ENC28j60+PIC24 as my module. But my module has to connect one TCP server(say server_IP and port1). And at the same time, the same module should work as a server( of enc_IP and port2), another module will connect to this enc_IP & Port2 as a client.
Can anyone help me on this how to implement this setup to serve as a server to listen whoever connects and manipulate & as a client to send data to another server?