Re: Socket Pools?
From: Glenn Wilson (ircomm_at_hotemail.com)
Date: 08/08/04
- Next message: William Stacey [MVP]: "Re: Nobody?"
- Previous message: Sean: "Two Windows"
- In reply to: Jacob: "Socket Pools?"
- Next in thread: Jacob: "Re: Socket Pools?"
- Reply: Jacob: "Re: Socket Pools?"
- Messages sorted by: [ date ] [ thread ]
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
>
>
- Next message: William Stacey [MVP]: "Re: Nobody?"
- Previous message: Sean: "Two Windows"
- In reply to: Jacob: "Socket Pools?"
- Next in thread: Jacob: "Re: Socket Pools?"
- Reply: Jacob: "Re: Socket Pools?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|