I´m curious about something, you have the constant WH_MAX_MSG = 100, which means that each Handler created can handle up to 100 different messages, from different objects right?

Is there a reason to be 100? If I increase this number to 200 for example, will I be able to create the double amount of sockets? Since, the most limiting fact is the handle (10.000 handlers on the process), if I share 1 handle with more classes, theorically I can create many more sockets


You are right. The only issue is that a given handle correspond to a single message queue. Having too much component per handle could result in a message queue growing too much and possibly being overflown (Never saw that).

If you need a large number of sockets because you have a large number of connection, this is not aproblem as long as most of the connections are not very active. This is probably the case otherwise you'd have a CPU problem.

--
francois.pie...@overbyte.be
The author of the freeware multi-tier middleware MidWare
The author of the freeware Internet Component Suite (ICS)
http://www.overbyte.be

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

Reply via email to