Re: "connect'" returns before server "accept"s




<chengiz@xxxxxxxxxxx> wrote in message
news:1136828589.232555.236130@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

> Thanks all. I could be wrong about exactly when EPIPE happens, sorry
> about that.
> Is it then possible to get the server to accept only one (or n)
> connects in some way? Eg. is it possible to close or un-bind or
> un-listen the passive socket immediately after the first (or nth)
> accept returns, so further connects are refused, but the already
> established ones still work? Thank you.

No. Most likely, something is really wrong if you think you want to do
this.

It sounds like your server and your client are not designed to the same
protocol specification. That will never, *ever* work.

DS


.



Relevant Pages

  • Re: "connect" returns before server "accept"s
    ... I could be wrong about exactly when EPIPE happens, ... Is it then possible to get the server to accept only one ... Khan ... Prev by Date: ...
    (comp.unix.programmer)
  • Re: sending echo to all clients
    ... I think protocol specification means designing UDP and TCP and IP ... Exactly what bytes is the client supposed to send? ... I want to send and receive words, like IRC server. ...
    (comp.unix.programmer)
  • Re: write(2) trips SIGCHLD after EPIPE why?
    ... >socket before the server has written all of it's responses. ... >I can see via strace that writeis indeed returning EPIPE: ... Process 16744 dies with a SIGPIPE it seems. ...
    (comp.unix.programmer)
  • Re: Restricting outside mail
    ... Is the only Server in Domain. ... i've tried almost every articles that find in ... >> but the users still can send mails outside domain. ... Prev by Date: ...
    (microsoft.public.exchange.admin)
  • Is there any way to have a dropdown list with non-unique values?
    ... When I select the third option and postback, the server thinks ... that the user actually selected the second option because it is ... the first option with a value of 2. ... Prev by Date: ...
    (microsoft.public.dotnet.framework.aspnet)