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
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.
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;
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
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
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
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
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
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
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
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.
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
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:
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
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
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
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
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
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
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
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
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
22 matches
Mail list logo