[twsocket] SMTP connection limit

2007-03-08 Thread Veit Zimmermann
Hi

Are there providers which limit the number of concurrent SMTP
connections? In other words: Do I have to make the maximum number
of connections for asynchronous operation flexible and what would
be a good practice approach (besides making it user configurable).

TIA
Veit
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


[twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
Hi,

I have a problem with TWSocket.State staying as wsConnecting after I try 
and connect.

I am using a thread to execute an SQL query. For each result from this 
query, I connect to a remote server using the TWSocket, and send some 
data. That's the plan.

In the Thread.Execute procedure, I have created the TWSocket, then I run 
through a state machine to query the database, make the connection etc.

Does anyone know why .State would stay at wsConnecting?

I can connect to the server manually using telnet, and I don't have any 
problems providing additional info. Just didn't want to overload the 
email at this point.

Thanks,

Andy
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread Fastream Technologies
Do you have a message pump in the thread.execute?

Regards,

SZ

- Original Message - 
From: info2004 [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, March 08, 2007 6:46 PM
Subject: [twsocket] TWSocket not connecting for me


 Hi,
 
 I have a problem with TWSocket.State staying as wsConnecting after I try 
 and connect.
 
 I am using a thread to execute an SQL query. For each result from this 
 query, I connect to a remote server using the TWSocket, and send some 
 data. That's the plan.
 
 In the Thread.Execute procedure, I have created the TWSocket, then I run 
 through a state machine to query the database, make the connection etc.
 
 Does anyone know why .State would stay at wsConnecting?
 
 I can connect to the server manually using telnet, and I don't have any 
 problems providing additional info. Just didn't want to overload the 
 email at this point.
 
 Thanks,
 
 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SMTP connection limit

2007-03-08 Thread Arno Garrels
Veit Zimmermann wrote:
 Hi
 
 Are there providers which limit the number of concurrent SMTP
 connections? 

Most likely.

 In other words: Do I have to make the maximum number
 of connections for asynchronous operation flexible and what would
 be a good practice approach (besides making it user configurable).

I don't know how connections were rejected when the limit is reached.
I think that multiple connections to the same mail server do not improve
speed much. Probably the fastest method was sending multiple E-Mails in
a single session one after the other.

---
Arno Garrels [TeamICS]
http://www.overbyte.be/eng/overbyte/teamics.html


   
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
SZ,

Erm, I guess not. What do I need for that or where do I go to find out?

Regards,

Andy
Fastream Technologies wrote:
 Do you have a message pump in the thread.execute?
 
 Regards,
 
 SZ
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:46 PM
 Subject: [twsocket] TWSocket not connecting for me
 
 
 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try 
 and connect.

 I am using a thread to execute an SQL query. For each result from this 
 query, I connect to a remote server using the TWSocket, and send some 
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run 
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any 
 problems providing additional info. Just didn't want to overload the 
 email at this point.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread Francois PIETTE
Maybe your  problem is that when calling Connect you ask the component to 
connect. You get control back immediately (asynchronous method) while the 
component try to establish the connection for you. Once the connection is 
established, you have OnSessionConnected event which is triggered. This is 
where you can start playing with send/receive.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


- Original Message - 
From: info2004 [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, March 08, 2007 5:46 PM
Subject: [twsocket] TWSocket not connecting for me


 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SMTP connection limit

2007-03-08 Thread Francois PIETTE
 Are there providers which limit the number of concurrent SMTP
 connections? In other words: Do I have to make the maximum number
 of connections for asynchronous operation flexible and what would
 be a good practice approach (besides making it user configurable).

There is no limit imposed by the component. But the OS and of course the 
server will limit the number of concurrent connections.

--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] SMTP connection limit

2007-03-08 Thread [EMAIL PROTECTED]
Hello:
   Most ISP's SMTP servers limit the amount of
concurrent connections from the same source to about
10 or 20.  This is intended to prevent automatic
spamming and mail bombing runs, or to at least hinder
or limit their impact.  This is pretty much an
industry standard nowadays (along with rejecting
connections from dynamic IP addresses).

   Making the limit configurable is a good idea, and
I would suggest a default limit of no more than 20. 
Like Arno said in his post, asynchroneous connections
to the same server do not necessarily increase
performance significantly so it shouldn't matter that
much to the user.

-dZ.


--- Original Message ---
From: Veit
Zimmermann[mailto:[EMAIL PROTECTED]
Sent: 3/8/2007 6:42:03 AM
To  : twsocket@elists.org
Cc  : 
Subject : RE: [twsocket] SMTP connection limit

 Hi

Are there providers which limit the number of
concurrent SMTP
connections? In other words: Do I have to make the
maximum number
of connections for asynchronous operation flexible
and what would
be a good practice approach (besides making it user
configurable).

TIA


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread Fastream Technologies
Search for MessagePump/GetMessage API function in this list's archieve to 
learn more. The TWSocket also contains a messagepump() function to see. If 
you use sync methods, then the message pump is implicitly called until 
needed. The bad thing is that there is a single action done in the thread. 
If you want parallel execution in the same thread, use async/events plus 
GetMessage of your own.

Best Regards,

SubZero

- Original Message - 
From: info2004 [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, March 08, 2007 7:37 PM
Subject: Re: [twsocket] TWSocket not connecting for me


 SZ,

 Erm, I guess not. What do I need for that or where do I go to find out?

 Regards,

 Andy
 Fastream Technologies wrote:
 Do you have a message pump in the thread.execute?

 Regards,

 SZ

 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:46 PM
 Subject: [twsocket] TWSocket not connecting for me


 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be

 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
Francois,

Thanks for the response.

The .State parameter stays at wsConnecting for minutes - then I terminate.

I am going to look at SZ's messagepump angle, as that sounds quite 
promising.

Regards,

Andy
Francois PIETTE wrote:
 Maybe your  problem is that when calling Connect you ask the component to 
 connect. You get control back immediately (asynchronous method) while the 
 component try to establish the connection for you. Once the connection is 
 established, you have OnSessionConnected event which is triggered. This is 
 where you can start playing with send/receive.
 
 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be
 
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 5:46 PM
 Subject: [twsocket] TWSocket not connecting for me
 
 
 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 
 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
SZ,

I had a look through the list and saw the ref's to get and peek etc.

I did a grep on the source and decided to use TWSocket.ProcessMessages 
in my Thread.Execute loop.

This seemed to work. The socket connects and I send my data.Are there 
going to be any pitfalls in doing this?

Thanks for the help.

regards,

Andy
Fastream Technologies wrote:
 Search for MessagePump/GetMessage API function in this list's archieve to 
 learn more. The TWSocket also contains a messagepump() function to see. If 
 you use sync methods, then the message pump is implicitly called until 
 needed. The bad thing is that there is a single action done in the thread. 
 If you want parallel execution in the same thread, use async/events plus 
 GetMessage of your own.
 
 Best Regards,
 
 SubZero
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 7:37 PM
 Subject: Re: [twsocket] TWSocket not connecting for me
 
 
 SZ,

 Erm, I guess not. What do I need for that or where do I go to find out?

 Regards,

 Andy
 Fastream Technologies wrote:
 Do you have a message pump in the thread.execute?

 Regards,

 SZ

 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:46 PM
 Subject: [twsocket] TWSocket not connecting for me


 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 
 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread Fastream Technologies
It's not that complex at all. So even if you have like,

while(!Terminated)
TWSocket.ProcessMessages();

it should be ok for simple use. There are some more complex use of 
GetMessage but not needed for single twsocket/thread.

Best Regards,

SZ

- Original Message - 
From: info2004 [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, March 08, 2007 8:18 PM
Subject: Re: [twsocket] TWSocket not connecting for me


 SZ,

 I had a look through the list and saw the ref's to get and peek etc.

 I did a grep on the source and decided to use TWSocket.ProcessMessages
 in my Thread.Execute loop.

 This seemed to work. The socket connects and I send my data.Are there
 going to be any pitfalls in doing this?

 Thanks for the help.

 regards,

 Andy
 Fastream Technologies wrote:
 Search for MessagePump/GetMessage API function in this list's archieve to
 learn more. The TWSocket also contains a messagepump() function to see. 
 If
 you use sync methods, then the message pump is implicitly called until
 needed. The bad thing is that there is a single action done in the 
 thread.
 If you want parallel execution in the same thread, use async/events plus
 GetMessage of your own.

 Best Regards,

 SubZero

 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 7:37 PM
 Subject: Re: [twsocket] TWSocket not connecting for me


 SZ,

 Erm, I guess not. What do I need for that or where do I go to find out?

 Regards,

 Andy
 Fastream Technologies wrote:
 Do you have a message pump in the thread.execute?

 Regards,

 SZ

 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:46 PM
 Subject: [twsocket] TWSocket not connecting for me


 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I 
 try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I 
 run
 through a state machine to query the database, make the connection 
 etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have 
 any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread info2004
Francois,
Francois PIETTE wrote:
 I had not noticed you where using threads. SZ is right: you need a message 
 pump in your thread.
 There are several multithread sample delivered with ICS-V5 (They are good 
 for ICS-V6)
 
 btw: You frequently don't need thread with ICS because it is asynchronous 
 and non-blocking. It multitask automatically WITHOUT using threads. 
 Programming is then much easier...
To date, I have used the components without additional threads. This is 
my first experience using threads. I had to do this because the SQL 
stuff I use (ADO) is blocking. If the SQL server is busy, or down, you 
get very large waits in your program. So I have moved the SQL stuff into 
it's own thread.

The main thread still uses TWSocketServer to accept the client connects.

Regards,

Andy
 
 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be
 
 
 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:49 PM
 Subject: Re: [twsocket] TWSocket not connecting for me
 
 
 Francois,

 Thanks for the response.

 The .State parameter stays at wsConnecting for minutes - then I terminate.

 I am going to look at SZ's messagepump angle, as that sounds quite
 promising.

 Regards,

 Andy
 Francois PIETTE wrote:
 Maybe your  problem is that when calling Connect you ask the component to
 connect. You get control back immediately (asynchronous method) while the
 component try to establish the connection for you. Once the connection is
 established, you have OnSessionConnected event which is triggered. This 
 is
 where you can start playing with send/receive.

 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be


 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 5:46 PM
 Subject: [twsocket] TWSocket not connecting for me


 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I run
 through a state machine to query the database, make the connection etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 
 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread Fastream Technologies
I do not think TWSocketServer  is thread-safe! Am I wrong?

Regards,

SZ

- Original Message - 
From: info2004 [EMAIL PROTECTED]
To: ICS support mailing twsocket@elists.org
Sent: Thursday, March 08, 2007 9:45 PM
Subject: Re: [twsocket] TWSocket not connecting for me


 Francois,
 Francois PIETTE wrote:
 I had not noticed you where using threads. SZ is right: you need a 
 message
 pump in your thread.
 There are several multithread sample delivered with ICS-V5 (They are good
 for ICS-V6)

 btw: You frequently don't need thread with ICS because it is asynchronous
 and non-blocking. It multitask automatically WITHOUT using threads.
 Programming is then much easier...
 To date, I have used the components without additional threads. This is
 my first experience using threads. I had to do this because the SQL
 stuff I use (ADO) is blocking. If the SQL server is busy, or down, you
 get very large waits in your program. So I have moved the SQL stuff into
 it's own thread.

 The main thread still uses TWSocketServer to accept the client connects.

 Regards,

 Andy

 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be


 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 6:49 PM
 Subject: Re: [twsocket] TWSocket not connecting for me


 Francois,

 Thanks for the response.

 The .State parameter stays at wsConnecting for minutes - then I 
 terminate.

 I am going to look at SZ's messagepump angle, as that sounds quite
 promising.

 Regards,

 Andy
 Francois PIETTE wrote:
 Maybe your  problem is that when calling Connect you ask the component 
 to
 connect. You get control back immediately (asynchronous method) while 
 the
 component try to establish the connection for you. Once the connection 
 is
 established, you have OnSessionConnected event which is triggered. This
 is
 where you can start playing with send/receive.

 --
 Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
 --
 [EMAIL PROTECTED]
 http://www.overbyte.be


 - Original Message - 
 From: info2004 [EMAIL PROTECTED]
 To: ICS support mailing twsocket@elists.org
 Sent: Thursday, March 08, 2007 5:46 PM
 Subject: [twsocket] TWSocket not connecting for me


 Hi,

 I have a problem with TWSocket.State staying as wsConnecting after I 
 try
 and connect.

 I am using a thread to execute an SQL query. For each result from this
 query, I connect to a remote server using the TWSocket, and send some
 data. That's the plan.

 In the Thread.Execute procedure, I have created the TWSocket, then I 
 run
 through a state machine to query the database, make the connection 
 etc.

 Does anyone know why .State would stay at wsConnecting?

 I can connect to the server manually using telnet, and I don't have 
 any
 problems providing additional info. Just didn't want to overload the
 email at this point.

 Thanks,

 Andy
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be
 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be


 -- 
 To unsubscribe or change your settings for TWSocket mailing list
 please goto http://www.elists.org/mailman/listinfo/twsocket
 Visit our website at http://www.overbyte.be 

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


Re: [twsocket] TWSocket not connecting for me

2007-03-08 Thread Francois PIETTE
 btw: You frequently don't need thread with ICS because it is asynchronous
 and non-blocking. It multitask automatically WITHOUT using threads.
 Programming is then much easier...

 To date, I have used the components without additional threads. This is
 my first experience using threads. I had to do this because the SQL
 stuff I use (ADO) is blocking.

Well, ADO component have an asynchronous option and they become non-blocking 
!

 If the SQL server is busy, or down, you
 get very large waits in your program.
 So I have moved the SQL stuff into it's own thread.

Having a separate thread for data processing is good design. Trying to push 
everything - communication and dataprocessing - in the same thread is bad 
design.


--
Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html
--
[EMAIL PROTECTED]
http://www.overbyte.be


-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be