linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* my server is blocking...
@ 2006-07-27 19:17 Norbert François
  2006-07-27 19:37 ` Steve Graegert
  2006-07-27 21:19 ` Glynn Clements
  0 siblings, 2 replies; 3+ messages in thread
From: Norbert François @ 2006-07-27 19:17 UTC (permalink / raw)
  To: linux-c-programming

Hi list,

I'm a beginner in C (sockets) programming, so please, excuse my stupid question.

I'm trying to do a servent (server+client) for a p2p connexion. When I
dissociate the client and the server, everything's all right. The
Server is waiting for (pending) a connexion and when I connect on it,
I've the behaviour I want.

But now, I tried to merge the server & client together. When I start
my program, the server is pending and the other part of my program
isn't executed :( (the server is pending in an "accept" state). I
tried to do some fork(), but it was useless (in fact, a new server is
restarted and I get a bind error). How can I solve this problem
(easily, if possible) ?

In advance, thank you for your help

norbert

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-07-27 21:19 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-07-27 19:17 my server is blocking Norbert François
2006-07-27 19:37 ` Steve Graegert
2006-07-27 21:19 ` Glynn Clements

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).