Re: Problem with socket programming



Carl wrote:

I can understand .
Because I want to know this information for determine my server's
action .
For example , if there are 10 clients in the socket server pending
queue and my server maybe enable quick-pass mode to access the client .

That is why I want to get the socket server pending queue number.

Or maybe I think the wrong way ?

Just keep accepting the connections and put them in your own queue. That way you will have an accurate count.

--
Phil Frisbie, Jr.
Hawk Software
http://www.hawksoft.com
.



Relevant Pages

  • Re: Asynchronous socket server
    ... Create a listener thread the accepts connection. ... you don't even need the queue or locking on it. ... | threads can pass data to or communicate with the asynchonous socket server ... | send data back to the clients. ...
    (microsoft.public.dotnet.languages.csharp)
  • Format of string output of a socket server
    ... I am writing a socket server to deliver telephony events to clients on a ... My socket server is currently sending out char*. ... the format of string output? ...
    (microsoft.public.win32.programmer.networks)
  • Re: Server question - how to send data to particular socket
    ... A> raised and I need to send some information to Angus. ... A> socket server but unsure on this bit. ... Using this design will not bound clients to specific network addresses. ...
    (microsoft.public.win32.programmer.networks)
  • GT.M sockets work with Telnet client, hang with others.
    ... I'm writing a socket server on GT.M, and it receives and responds to Telnet ... clients just fine. ... read a specific number of bytes on the second message? ...
    (comp.lang.mumps)
  • Re: socketServer questions
    ... Clients that may fall into the wrong hands? ... What is there besides hmac? ... I'm trying to keep script kiddies from tampering with a socket server. ... understanding it and then being able to forge a string that the server ...
    (comp.lang.python)