CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

TCP/IP Server, several client connected

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Franck26



Joined: 29 Dec 2007
Posts: 122
Location: Ireland

View user's profile Send private message

TCP/IP Server, several client connected
PostPosted: Fri Jun 12, 2009 2:34 am     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group