Re: Client to connect to a chat server
- From: "Nikolaj" <devetakowskij@xxxxxxxxx>
- Date: 31 Oct 2006 03:04:32 -0800
Thank you very much Mihai!
I was thinking that the solution was somenthing like using select but
I wasn't certain.
If I have a program that read from a keyboard, it reads from a file
stdin, and when it reads from a server, it reads from a socket. Both of
them have a file descriptor.
So, I can use select to see in which file there are some activities,
I can control the file descriptor and I can read only from the file who
has some data.
Thank you again.
Nikolaj
.
- References:
- Client to connect to a chat server
- From: Nikolaj
- Re: Client to connect to a chat server
- From: Mihai Osian
- Client to connect to a chat server
- Prev by Date: Re: ip route problem
- Previous by thread: Re: Client to connect to a chat server
- Next by thread: Two NICs, Two networks, secure websites
- Index(es):
Relevant Pages
|