1. tcp4u_connect()

here is the dilemna:

  I need to be able to make multiple connections simultaneously.

  tcp4u allows for multiple sockets, but there is no timeout setting for 
tcp4u_connect(), and it appears to be 1 minute. Also, the routine 
doesn't return until it makes contact or times out, so potentially, my 
program will, and it does, stall for one minute while waiting to 
timeout.

  When I need to make anywhere from 20 to 40 connections, or more, at 
the same time, waiting for 1 minute for each socket before being able to 
do _anything_ else, isn't an option.

  Even the duration of the timeout isn't so much of a problem, it's the 
fact that the function doesn't return until the connection is finished.

  What can I do? I know that the timeout is not controlled in euTcp4u.


Chris

new topic     » topic index » view message » categorize

2. Re: tcp4u_connect()

On 22 Apr 2002, at 6:06, Chris Bensler wrote:

> 
> here is the dilemna:
> 
>   I need to be able to make multiple connections simultaneously.
> 
>   tcp4u allows for multiple sockets, but there is no timeout setting for 
> tcp4u_connect(), and it appears to be 1 minute. Also, the routine 
> doesn't return until it makes contact or times out, so potentially, my 
> program will, and it does, stall for one minute while waiting to 
> timeout.
> 
>   When I need to make anywhere from 20 to 40 connections, or more, at 
> the same time, waiting for 1 minute for each socket before being able to 
> do _anything_ else, isn't an option.
> 
>   Even the duration of the timeout isn't so much of a problem, it's the 
> fact that the function doesn't return until the connection is finished.
> 
>   What can I do? I know that the timeout is not controlled in euTcp4u.

http4u_set_timeout


Description
Sets the timeout in seconds to use when using http4u functions.
The default timeout is 60 seconds.??????

Syntax
http4u_set_timeout(integer seconds)

where,
seconds= seconds to timeout for. 

Returns
Nothing

Example
http4u_set_timeout(60)

Also, take a peek at asynchttp in the archives.

Kat

new topic     » goto parent     » topic index » view message » categorize

3. Re: tcp4u_connect()

> here is the dilemna:
>     I need to be able to make multiple connections
>     simultaneously.

 I know what you feel...

Just like you, I also desperatelly needed multithread.
By developing Ray's test_IRC.exw for a more
advanced IRC client I would despreatelly need
multithread for the GUI. sad

Cheers,

Salix

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu