Re: [twsocket] ICS help system?

2006-02-09 Thread Tibor Csonka
>I much prefer it were hosted directly at OverByte, but just in case, >know that the hosting space I have available includes MySQL/PHP and all >the standard features. I always intended to make a web site, but never >found the time, so I have 10GB of space, which I pay for yearly, just >wastin

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Francois Piette a écrit : > > That's what I do with my MidWare threaded TServerObject. You can apply the > same logic to the > HttpServer component. > > I have a class which manage a pool of threads. When a request comes in, I get > a thread from the > pool, adding a new one if necessary. The t

Re: [twsocket] ICS help system?

2006-02-09 Thread DZ-Jay
Fredrik Larsson wrote: > Just MySQL and PHP. And probably the best place for a ICS/Midware wiki is > with you (Francois) :) I much prefer it were hosted directly at OverByte, but just in case, know that the hosting space I have available includes MySQL/PHP and all the standard features. I alwa

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Francois Piette
> back data to wrong client. That is why I know use an incremental > SessionID counter that I pass to worker to be sure to never send data > back to wrong socket and be sure to always get unique ID among > thousand of connections. That's good. You can use the reference to find out i

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Dod
Hello Francois, Exactly what I do now, but what reference do you pass to thread ? At beginning I did it with socket.handle (if I remember well by it was long time ago) by I noticed that if during work job the socket is closed and a new connexion come, then it could happend that this ne

Re: [twsocket] about the socket close

2006-02-09 Thread Francois Piette
> > To send a FIN to the remote site, you have to call Shutdown, not Close. > > When the remote acknoledge > > the end of connection, you get the OnSessionClosed event triggered. > Thanks for Francois.Following your words,when the server don't call the > 'shutdown()',does it mean that the second F

Re: [twsocket] about the socket close

2006-02-09 Thread Jeff Peng
Sorry for having sent the same message to this list two times. Thanks for Francois.Following your words,when the server don't call the 'shutdown()',does it mean that the second FIN can't be sent to client,even if it has received the client's FIN? 2006/2/9, Francois Piette <[EMAIL PROTECTED]>: >

Re: [twsocket] ICS help system?

2006-02-09 Thread Fredrik Larsson
Just MySQL and PHP. And probably the best place for a ICS/Midware wiki is with you (Francois) :) Regards, Fredrik. > -Original Message- > > I have this hosted site that it is currently not being used for > > *anything*. I will be glad to donate some (most?) of this space to > > host t

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Francois Piette
> What you're doing is transfering a socket from main thread > context to your work thread context. > My purpose is not the following. What i mean is executing > all the SQL stuff within the thread, > and the connection stuff within the main thread. That's what I do with my MidWare threaded TServe

Re: [twsocket] about the socket close

2006-02-09 Thread Francois Piette
I'm not sure I understand... To send a FIN to the remote site, you have to call Shutdown, not Close. When the remote acknoledge the end of connection, you get the OnSessionClosed event triggered. -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html -- [EMAIL PROTECTED] Autho

Re: [twsocket] ICS help system?

2006-02-09 Thread Francois Piette
> I have this hosted site that it is currently not being used for > *anything*. I will be glad to donate some (most?) of this space to > host the ICS wiki if you guys want. I have some space available on my website. What are the requirements ? -- [EMAIL PROTECTED] http://www.overbyte.be -- T

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Dod a écrit : > Ok so you do nearly same as me. But at the end of threaded job I > verify the client still exists before sending result. > > When a session connect I set a SessionID incremental counter in > MySocketClient class because I noticed that same socket handle can be > re-us

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Dod
Hello Guillaume, Ok so you do nearly same as me. But at the end of threaded job I verify the client still exists before sending result. When a session connect I set a SessionID incremental counter in MySocketClient class because I noticed that same socket handle can be re-used by a

[twsocket] the 'close' and 'FIN'

2006-02-09 Thread Jeff Peng
hello,lists, I have a pair of Client-Server Socket programs.When the client have finished writing the datas,it should call the 'close()' to close the socket-end for client.And,when the server receive the EOF coming from client,it should call the 'close()' the close socket-end for server.Then the

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Dod a écrit : > Hello Guillaume, > > Until know what I use to do is to create a worker thread and send jobs > (with pointer to socket client object) and then worker send back a > message to socket thread with pointer of data to send back to client. > So all socket things is done from same thr

Re: [twsocket] DNSQuery - bugreport

2006-02-09 Thread Wilfried Mestdagh
Hello Ann, > I dont really understand what do you mean :( Sorry, I try to be more clear next time.. > They are being created > by main form and are being destroyed by timer on main form. I'm not > creating separate thread or anything... OK, then you have to set MultiThreading to False !!! It ha

[twsocket] about the socket close

2006-02-09 Thread Jeff Peng
hello,list, I have a pair of Client-Server Socket programs.When the client have finished writing the datas,it should call the 'close()' to close the socket-end for client.And,when the server receive the EOF coming from client,it should call the 'close()' the close socket-end for server.Then the es

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Dod
Hello Guillaume, Until know what I use to do is to create a worker thread and send jobs (with pointer to socket client object) and then worker send back a message to socket thread with pointer of data to send back to client. So all socket things is done from same thread. Dettaching clientso

Re: [twsocket] ICS help system?

2006-02-09 Thread DZ-Jay
On Feb 8, 2006, at 08:23, Tibor Csonka wrote: > If DZ-Jay is offering hosting, then I can maybe do the Windows HTML > help > importer, which will take the exported wiki data and build a html > source > from it. I don't know the effort to do that but I'm willing to look at > it if you like. Anywa

Re: [twsocket] POP3 Client - changing folders on the server

2006-02-09 Thread DZ-Jay
Hello: With POP3, there is no notion of "folders" or any organization of messages. It is just reads a single file. When you said that your ISP added a spam folder, what do you mean? Did they add this to a WebMail application? If so, this has nothing to do with the POP3 server.

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Bjørnar Nielsen a écrit : > I have a similar design, but I also have a pointer to the thread in the > THttpConnection so that the connection can set a flag on the thread if the > connection is dropped before the thread has finished the work and risk using > a freed connection. True ! i haven't see

Re: [twsocket] ICS help system?

2006-02-09 Thread Guillaume MAISON
Arno Garrels a écrit : > > A wiki allows many users to work on the same stuff, that's something > totally different. Help-comments in the source files would nullify this > approach. Not completely true about nullification :) Let's say there would be a really up-to-date version of the documentati

Re: [twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Bjørnar Nielsen
I have a similar design, but I also have a pointer to the thread in the THttpConnection so that the connection can set a flag on the thread if the connection is dropped before the thread has finished the work and risk using a freed connection. This design could serve several connections/threads at

[twsocket] [QUESTION] ThttpServer and threading design

2006-02-09 Thread Guillaume MAISON
Hi everyone, i've an application to write, a client and a server. i've choosen to use the HTTP protocol to enable communication through them. Hence, i'll use the THttpServer as my server front-end. my question is the following : some requests may use some database stuff (SQLite). It shouldn't be

Re: [twsocket] DNSQuery - bugreport

2006-02-09 Thread Ja
I dont really understand what do you mean :( They are being created by main form and are being destroyed by timer on main form. I'm not creating separate thread or anything... But maybe its important that first error (after running application) is always "invalid pointer operation". It never oc

Re: [twsocket] DNSQuery - bugreport

2006-02-09 Thread Wilfried Mestdagh
Hi Ann, > Of course TDNSQuery is running in TCP mode and MultiThreaded is set > to True. Do you execute it in a separate thread context ? Because that can be the reason of access violation. A component create / destroy should be in same thread context. --- Rgds, Wilfried [TeamICS] http://www.ove