Re: Talking
- From: "David Schwartz" <davids@xxxxxxxxxxxxx>
- Date: 19 Nov 2006 06:37:48 -0800
Salvatore Di Fazio wrote:
Hi guys,
I have a little problem.
What is the problem?
I just try to make two clients (in python) that can talk together.
Okay, that is your goal.
I have made a server that gets the clients connection request and
makes a child (fork it).
I thought that to make a talking channel I needed just the list of
socket connected.
So I wrote that:
....
cout << "list_fd: "<< list_fd << endl;
cnnlist_fd[i] = conn_fd;
cout << "conn_fd: " << conn_fd << endl;
i++;
ServEcho(conn_fd); // handle echo
....
Has you can read I use an example of SerEcho to make my project.
In the ServEcho function I try to use the cnnlist_fd array to
understand where the string will be sent.
Okay, that is how you plan to achieve your goal.
Where do I make a mistake?
No idea. What's not happening that should be happening? Or where do you
get stuck?
DS
.
- Follow-Ups:
- Re: Talking
- From: Salvatore Di Fazio
- Re: Talking
- References:
- Talking
- From: Salvatore Di Fazio
- Talking
- Prev by Date: Re: Does the kernel code run through the MMU and page tables?
- Next by Date: Re: Talking
- Previous by thread: Talking
- Next by thread: Re: Talking
- Index(es):
Relevant Pages
|
|