Client to connect to a chat server
- From: "Nikolaj" <devetakowskij@xxxxxxxxx>
- Date: 29 Oct 2006 05:55:40 -0800
Hi everybody,
I have a program server that receive strings from many clients and
then send this strings to all the clients connected to him. I connect
to the server with Telnet.
But if I want to write the program client I have a problem. I have to
write code that read from keyboard a string and a code that read
strings from the server (other clients), in this way a made a chat.
But if I write this, the program stops when he has to read from the
stdandard input (keyboard) and if there are data from the server he
don't go receive them.
Also if I write code that receive data from the server, if data isn't
there, I'm wasting my time.
How can I resolve this?
Thank you very much.
Nikolaj
.
- Follow-Ups:
- Re: Client to connect to a chat server
- From: Mihai Osian
- Re: Client to connect to a chat server
- Prev by Date: interface naming (eth[x], wlan[x], etc)
- Next by Date: Re: Netgear WG311 v3 on Fedora core 4
- Previous by thread: interface naming (eth[x], wlan[x], etc)
- Next by thread: Re: Client to connect to a chat server
- Index(es):
Relevant Pages
|