stop forwarding packet after checking the message sent from PC 1 to PC 3 through PC@
suppose there are 3 PCs
A socket connection is made between PC 1 and PC 3 through PC 2.
PC 2 will act as a router wich forward packet from PC 1 to PC 3.
My problem is that
since the packet is directed to PC 3, in my program, how I can get the message sent from pc 1 to pc 3 at pc 2??
for PC 1, I write a client.c program to open connection and send data to PC 3
for PC 3, I write a server.c program to open connection and receive data and display on screen.
But I have no idea how I can get the message at PC 2.
I now try writing userspace program, but still in progress.
I would like to seek opinions from some experts here, thanks~~~~
Thanks again and again~~~
(Does anyone know any website which teaches userspace program in details?)