Re: [twsocket] 2006 Developer Conference in Northern California

2006-06-22 Thread Arno Garrels
Fastream Technologies wrote: You can mention the 32-connections-per-thread async/MT mixed system that is only possible with non-blocking sockets such as ICS. I can send you C++ code snippets. And would appreciate if you mentioned IQRP as an example. I recently started writing a MT TWSocket

Re: [twsocket] 2006 Developer Conference in Northern California

2006-06-22 Thread Arno Garrels
Fastream Technologies wrote: Yes this approach is the best for FTP/SMTP/POP3 servers. We use a dynamic thread pool which remembers the number of threads served in the last second and scales the thread destruction/pooling with respect to that. This is even better than fixed number of threads.

[twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
I have the following problem in V6: constructor TListenThread.Create(AServer: TMtWSocketServer); begin inherited Create(True); FreeOnTerminate := FALSE; FServer := AServer; FServer.ThreadDetach; end; procedure TListenThread.Execute; begin FServer.ThreadAttach;

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Francois Piette
If you set a breakpoint on FServer.ThreadDetach, do you get a hit on it when stopping the server ? And when you single step into the code, is the handle actually set to 0 ? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Francois Piette wrote: If you set a breakpoint on FServer.ThreadDetach, do you get a hit on it when stopping the server ? And when you single step into the code, is the handle actually set to 0 ? -- Yes, it is set to 0! [EMAIL PROTECTED] http://www.overbyte.be - Original Message

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Fastream Technologies
I had the same problem. In my case, I had to post a message before ending the thread. There was pending messages that called GetHandle which called AllocateHwnd()!!! Regards, SZ - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Fastream Technologies wrote: I had the same problem. In my case, I had to post a message before ending the thread. There was pending messages that called GetHandle which called AllocateHwnd()!!! GetHandle isn't called in my case. There are no connections, I'm just pressing btnStart and

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Arno Garrels wrote: Fastream Technologies wrote: I had the same problem. In my case, I had to post a message before ending the thread. There was pending messages that called GetHandle which called AllocateHwnd()!!! GetHandle isn't called in my case. There are no connections, I'm just

[twsocket] WSocket - HOW DO I...?

2006-06-22 Thread Waldemar Łukaszewski
Hi. Got serious problem with WSocket... im trying to write a client for rcon (BF2 game server administration system), but have no idea how do i know if server have sent all it wanted to send after command. For example got command bf2cc pl that list players on the server and gives some

Re: [twsocket] WSocket - HOW DO I...?

2006-06-22 Thread Francois PIETTE
have no idea how do i know if server have sent all it wanted to send after command. The easiest is to add a delimiter after the data. And the eaisiest is to use a CR/LF pair, that is send text lines. It is easy because TWSocket has a LineMode you can set to TRUE to have it assemble complete

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Fastream Technologies wrote: I had the same problem. In my case, I had to post a message before ending the thread. There was pending messages that called GetHandle which called AllocateHwnd()!!! My problem still persists, sometimes the exception Cannot attach when not detached is raised.

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Francois PIETTE
This is surely not the problem, but WaitFor should be avoided when possible. It is known to create deadlocks. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Arno Garrels [EMAIL

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Frans van Daalen
and if you replace waitfor it with a ThreadTerminated construction, maybe thats easier? I used waitfor only once and had deadlock issues which caused me to removed asap :-) - Original Message - From: Arno Garrels [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent:

Re: [twsocket] WSocket - HOW DO I...?

2006-06-22 Thread Waldemar Łukaszewski
The problem is that i'm only making a clinet. Server is as it is. There is no way to change it... Dnia 22-06-2006 o godz. 17:58 Francois PIETTE napisał(a): have no idea how do i know if server have sent all it wanted to send after command. The easiest is to add a delimiter after the

Re: [twsocket] WSocket - HOW DO I...?

2006-06-22 Thread Francois PIETTE
Then you have to dynamically parse the received reply to know if a command is complete or not. But this looks very much strange to me. At least the server is badly designed if it doesn't make use of: 1) A fixed message length 2) A variable length message with delimiter at the end of each message

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Frans van Daalen wrote: and if you replace waitfor it with a ThreadTerminated construction, maybe thats easier? I used waitfor only once and had deadlock issues which caused me to removed asap :-) Not sure what you mean. The problem is that even if you call ThreadDetach (which is to make the

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Francois PIETTE
Not sure what you mean. The problem is that even if you call ThreadDetach (which is to make the component windowless) you cannot be sure that the component will not allocate another window handle somewhere in the background after that call to ThreadDetach. I don't see how the component

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Francois PIETTE wrote: Not sure what you mean. The problem is that even if you call ThreadDetach (which is to make the component windowless) you cannot be sure that the component will not allocate another window handle somewhere in the background after that call to ThreadDetach. I don't

Re: [twsocket] WSocket - HOW DO I...?

2006-06-22 Thread Dan
RCON usually uses UDP (at least in my experience with Half-Life). You probably need to increase the buffer size of the socket so that all the data is included in a single datagram. Dan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Waldemar Lukaszewski

Re: [twsocket] V6 ThreadDetach #2

2006-06-22 Thread Arno Garrels
Arno Garrels wrote: Francois PIETTE wrote: Not sure what you mean. The problem is that even if you call ThreadDetach (which is to make the component windowless) you cannot be sure that the component will not allocate another window handle somewhere in the background after that call to

Re: [twsocket] WSocket - HOW DO I...?

2006-06-22 Thread Waldemar Łukaszewski
In BF2 it uses TCP... anyways... the problem is that i dunno how to set this buffer size :( The problem appears only on WIFI connection... :( Dnia 22-06-2006 o godz. 21:23 Dan napisał(a): RCON usually uses UDP (at least in my experience with Half-Life). You probably need to increase the

[twsocket] smtpclient error

2006-06-22 Thread kaythorn
I have been using the smtp component for some time, but need to update it because I need the authentication feature so I downloaded the current ics suite. On recompiling my program I get an error message reading SmptClient.ShareMode Property does not exist What have I done wrong? Roland