Re: Socket Pools?

From: Glenn Wilson (ircomm_at_hotemail.com)
Date: 08/08/04


Date: Sun, 8 Aug 2004 14:21:16 +1000

I would have a look at threading to control the sockets.
Get the users to use a UDP Port to request a Connection, when this
connection is successful send back a UDP Message withthe connection detail
for a TCP Port to connect to (Also Send a Hash value say the IP Address and
port as well as some secret Code, to be used to verify that the incomming
connection is allowed to connect at this time)

"Jacob" <js@hotmail.com> wrote in message
news:6ndRc.4869$Lj.426@fed1read03...
> Is there any tutorials or documentation that you could point me towards
> regarding pooling requests for a limited number of sockets?
>
> I want users of this class to be able to request a socket and if one isn't
> available, their request will be queued and a socket returned when it is
> available. Consequently, if a socket is no longer in use, how to return it
> to the pool. This is all in an attempt to not make so many connections to
a
> particular port, but use one if it has already been established.
>
> Does anybody know what I'm talking about?
>
> Any help is appreciated.
>
> Thanks,
> Jacob
>
>



Relevant Pages

  • Re: How to PostThreadMessages?
    ... can the machine terminate a connection WHILE transferring a ... So, you post a request for a file, a machine sends a response that contains ... This thread will send the keep-alive signals until the User disconnects ... check that the port is clear, block the port, read from the port, then ...
    (microsoft.public.vc.mfc)
  • Re: Communicating with a servlet using NIO?
    ... TCP/IP uses the same port number as the listening ... port for incoming connections. ... connection to it - all communication beyond the initial connection by ... and returns the descriptor for the new socket. ...
    (comp.lang.java.programmer)
  • Re: Definition of a socket on Suns website
    ... the server gets a new socket bound to a different port. ... It needs a new socket (and consequently a different port number) so that it can continue to listen to the original socket for connection requests while tending to the needs of the connected client. ...
    (comp.lang.java.programmer)
  • Re: Socket and cycle problem
    ... listening this port countinously. ... So I need make some loop to print data from 3883 port permanent. ... the data it receives from each connection after the remote side drops ... If you were to use the socket module, then it would look something like this: ...
    (comp.lang.python)
  • MULTITHREADED
    ... where each client request are handle ... connected socket return by accept function. ... X Server close the connection without passing all the requested data ...
    (comp.programming.threads)

Quantcast