Franck26
Joined: 29 Dec 2007 Posts: 122 Location: Ireland
|
TCP/IP Server, several client connected |
Posted: Fri Jun 12, 2009 2:34 am |
|
|
Hi,
I'm running a server application embedded on a pic 18F66J60.
For that I used the CCS example ex13b.c and the Compiler: PCWH 4.083.
I'm trying to connect several client (PC) on the same server (PIC) and to communicate via a simple text protocol.
I don't have any problem to connect several client (PC), but when I initiate a communication the Server (PIC) always answer to the client which has been connected the last.
Example:
- Connect client PC1,
- Connect client PC2,
- PC2 send "Hello",
- Server answer "Hello" to PC2, => OK.
- PC1 send "Hello",
- Server answer "Hello" to PC2, => Should send to PC1.
Do you have any idea of what can be the problem?
Thanks for any help,
Franck. |
|