Re: [twsocket] I wonder... (TFtpServer)

2006-03-26 Thread Wilfried Mestdagh
Hello, TWSocketServer is newer... --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, March 26, 2006, 15:38, Fastream Technologies wrote: > Hello, > Why doesn't FTP server use TWSocketServer but emulate the same functionality > itself?

Re: [twsocket] receivefiles from Wilfried - trouble

2006-03-25 Thread Wilfried Mestdagh
.html http://www.mestdagh.biz Friday, March 24, 2006, 14:26, [EMAIL PROTECTED] wrote: > Hello > Using RcvFile application provided by Wilfried Mestdagh I had some > error at simultaneous receiving of files. > Details: I lunch srvfile.exe on a machine a put it in listen mode. > After th

Re: [twsocket] Making a MT HTTP Server -- NEED HELP!

2006-03-23 Thread Wilfried Mestdagh
Hello, > I am not much familier with Delphi linker and the below errors persist. Included them in a new project in delphi7, made a few changes and it compile fine here. Changes I did was because I dont think I have the latest v5 version, so I changed some in the uses clauses WSocket to OverbyteI

Re: [twsocket] TWSocket Question

2006-03-22 Thread Wilfried Mestdagh
Hello Philip, > TCP server this connects to sends me a set size data block When you receive the size data block, then allocate memory for it, start concatenating data packets until you have received the exact size of the data. You have to save in a variable what is received, and what is left, to

Re: [twsocket] Server problem (leaking memory)

2006-03-21 Thread Wilfried Mestdagh
ays returns 0 for all fields! Why could this be? > Regards, > SZ > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Monday, March 20, 2006 4:39 PM > Subject: Re: [twsocket] Server proble

Re: [twsocket] Server problem (leaking memory)

2006-03-20 Thread Wilfried Mestdagh
Hello, That is a lot leaking ;( Use GetHeapStatus and AllocMemSize to check at regular places in your code to find out where it starts to eat... --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, March 20, 2006, 14:34, Fastream Technolog

Re: [twsocket] which ip is used ...

2006-03-19 Thread Wilfried Mestdagh
Hello iwsc, Use GetXAddr method. It returns the local address to witch the socket has been bound. If you wants to know it from the other side you can use PeerAddr property. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, March 20, 200

Re: [twsocket] OnSessionClosed not always triggered

2006-03-19 Thread Wilfried Mestdagh
WM>> Rgds, Wilfried [TeamICS] WM>> http://www.overbyte.be/eng/overbyte/teamics.html WM>> http://www.mestdagh.biz WM>> Sunday, March 19, 2006, 19:03, Wilfried Mestdagh wrote: >>> Hello Dod, >>>> In the SessionClosed I start a Timer that will send a message 20 >

Re: [twsocket] OnSessionClosed not always triggered

2006-03-19 Thread Wilfried Mestdagh
] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, March 19, 2006, 19:03, Wilfried Mestdagh wrote: > Hello Dod, >> In the SessionClosed I start a Timer that will send a message 20 >> second later to retry a .Connect, but this new try will

Re: [twsocket] OnSessionClosed not always triggered

2006-03-19 Thread Wilfried Mestdagh
Hello Dod, > In the SessionClosed I start a Timer that will send a message 20 > second later to retry a .Connect, but this new try will only produce a > OnSessionConnected not followed by a SessionClosed, any idea why ? I examined the project that demonstrate the problem. The client you use

Re: [twsocket] TFTP protocol

2006-03-18 Thread Wilfried Mestdagh
Hi Marc, thx :) can you resent in private because the mailing list reject attach.. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, March 18, 2006, 20:23, Time Bandit wrote: >> I do recall we discussed about unit name, class name an

Re: [twsocket] TFTP protocol

2006-03-18 Thread Wilfried Mestdagh
Hi Marc, Glad to hear from you again. Long time no see (email) :) Hope all is well. I do recall we discussed about unit name, class name and other things, but was completely forgotten that it was TFTP proto. Can you please resend it ? If you agree it can also be on the user made page as is. ---

[twsocket] TFTP protocol

2006-03-18 Thread Wilfried Mestdagh
Hello, Has someone already made a component for TFTP ? It is Trivial File Transfer Protocol, a simple file transfer protocol with UDP, described in RFC 1350 and RFC 2347. -- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto ht

Re: [twsocket] OnSessionClosed not always triggered

2006-03-18 Thread Wilfried Mestdagh
Hello Dod, > In the SessionClosed I start a Timer that will send a message 20 > second later to retry a .Connect, This is the correct way to do it. > but this new try will only produce a > OnSessionConnected not followed by a SessionClosed Never had that situation. In al my automated prog

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Wilfried Mestdagh
Or throttle the sending of the data in the sender application. Now you have probably something like this: Socket.Send(DataChunck, Len); in SocketDataSent: SendNext; in SendNext: // read next chunck from file Socket.Send(DataChunck, Len); == you can change thsi as follow == Socket.Send

Re: [twsocket] twsocket cpu usage

2006-03-16 Thread Wilfried Mestdagh
Hello Radu, It is also possible if you send / receive very mutch data at high speed and save to disk or so. This take some time and meanwhile next chunck is probably already received. If this is the reason then you can slow down the sending a little by waiting a littel between data chuncks. You c

Re: [twsocket] Minichat problem

2006-03-15 Thread Wilfried Mestdagh
Hello Radu, Just make a non-MDI application, use the same functionality as in MiniChat and create normal forms for the clients. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, March 16, 2006, 02:12, [EMAIL PROTECTED] wrote: > Hell

Re: [twsocket] [Wiki] Still need some author

2006-03-13 Thread Wilfried Mestdagh
Hello, As we are with lots of people (Francois: How many ?) on this mailing list I'm pretty sure some of you say "hey I'm complaining sometime there is no help" !!! Now is your chance to do something on it So please join the team. Even if you dont have spare time at the moment. Just Do!

Re: [twsocket] keepalive

2006-03-09 Thread Wilfried Mestdagh
Hello Dod, > The connection will be > aborted after the number of retransmissions specified by > TcpMaxDataRetransmissions have gone unanswered. Does this means that there should be also a property TcpMaxDataRetransmissions ? And I also think this will have impact if there is many

Re: [twsocket] HttpCli.Abort

2006-03-05 Thread Wilfried Mestdagh
Hello Paul, No you start new request in OnRequestDone checkin the HttpState must be Ready. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, March 5, 2006, 18:31, Paul wrote: > Can you call HttpCli.Abort and immediately start a new re

Re: [twsocket] TWSocketServer halts when freed

2006-03-05 Thread Wilfried Mestdagh
Hello Jack, > I wonder if you can think of anything that I can hack around > just to see if it'll fix the problem? I should try some workarounds following to see: - First try to destroy the component same way in a temporary button click. If that's work then I assume it has something to do with

Re: [twsocket] TWSocketServer halts when freed

2006-03-04 Thread Wilfried Mestdagh
Hello Jack, > But it could be SendMessageA called by Yes possible. Jack can you try to make a simple new project to demonstrate the behaviour ? I will be glad to try debug in it. Wich delphi version do you use ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http

Re: [twsocket] TWSocketServer halts when freed

2006-03-04 Thread Wilfried Mestdagh
Hello Jack, I'm checking the log again in your first mail: main thread ($728): 7c90eb94 + ntdll.dll KiFastSystemCallRet 77d5f3de +0044 user32.dll SendMessageA 71ab8cc3 +489b WS2_32.dll WSACleanup 0048cdc4 +0018 Test.exe

Re: [twsocket] broadcast sender address

2006-03-04 Thread Wilfried Mestdagh
y. I presume ReceiveFrom should > not block but in my case it does. > -rvg > - Original Message ----- > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Saturday, March 04, 2006 6:58 PM > Subject

Re: [twsocket] TWSocketServer halts when freed

2006-03-04 Thread Wilfried Mestdagh
Hello Jack, I read your mail better now :) No need for Abort. Just Free the component. Then OnSessionClose will not fire. What will fire is OnChangeState, so be aware if you do things there like updating GUI or so. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http

Re: [twsocket] TWSocketServer halts when freed

2006-03-04 Thread Wilfried Mestdagh
Hello Jack, Do you have code in OnSessionClosed ? Because it will trigger with the call to Abort. Set it to nil beforehand. Also this is not called from within an event of TWSocketServer ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Satur

Re: [twsocket] broadcast sender address

2006-03-03 Thread Wilfried Mestdagh
Hello Robert, > RxBroadcastSocket.ReceiveFrom(@Buffer, SizeOf(Buffer), src, srcLen). > This function hangs the pc. You do call it from inside OnDataAvailable event ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or chang

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Wilfried Mestdagh
Hello Francois, Yes for example I have a few applications where I use OnChangeState to display this information. This need the if not Application.Terminated check before displaying.. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday,

Re: [twsocket] Triggering events whencsDestroyingisinComponentState?

2006-03-01 Thread Wilfried Mestdagh
Hello Arno, You are right. If you destroy a component you dont wants data from it anuymore. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, March 1, 2006, 19:46, Arno Garrels wrote: > Wilfried Mestdagh wrote: >> H

Re: [twsocket] Triggering events when csDestroyingisinComponentState?

2006-03-01 Thread Wilfried Mestdagh
Hello Arno, > Because I think that DataAvailable should not be triggered when the > component is destroyed anyway, but I may be wrong. As I recall it was by design that OnDataAvailable will trigger if there is partial data in buffer. This can happen with LineMode set. --- Rgds, Wilfried [TeamIC

Re: [twsocket] Non paged memory pool

2006-02-26 Thread Wilfried Mestdagh
Hello Dod, I think if value is 0, then windows calculated the size from itself. Setting the value will probably override windows calculations. But you cannot go over the limit of 1/8 from total or phisical limit. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http:/

Re: [twsocket] ICS on Mac OS X

2006-02-25 Thread Wilfried Mestdagh
Hello, Or the dotNet version ? Mac can install Mono wich should be dotNet compatible. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, February 25, 2006, 17:23, Francois PIETTE wrote: >> is ICS working on Mac OS X with Freepascal? I

Re: [twsocket] HttpCli problem

2006-02-25 Thread Wilfried Mestdagh
Hello Ronny, > Should httpcli.State = httpReady when OnRequestDone is called? If so, this > is not the case with 302. No becase OnRequestDone is called in different states. You have to put there a case statement. And when state is httpREady then you do next grab. But you where talking of Aboft

Re: [twsocket] HttpCli problem

2006-02-25 Thread Wilfried Mestdagh
Hello Ronny, > The problem is that the STATE is not ready after the abort Do you also mean that OnRequestDone is "not" fired after Abort ? Because normally this is the place to check if component is ready, and when it is then take next action. If this is the case then I assume state will be read

Re: [twsocket] Application.ProcessMessages and Access Violations

2006-02-21 Thread Wilfried Mestdagh
Hello David, Best is to start a new thread. Many modern email readers can sort on thread, so people not interested in this threaed will not see your message. Anyway I deleted followup so now it should be a new thread. > Does ICS need to call a.pm? can i tell it not to, and let me do it? Ics need

Re: [twsocket] Sending directly, not via Send Buffer

2006-02-21 Thread Wilfried Mestdagh
Hello Widita, > Those access violations never happened when LineMode is false... > Does anyone know the solution for this problem? LineMode True or False has on itself nothing to do with AV. So on base on this information nobody can give solution. There is something wrong with your code but witho

Re: [twsocket] Sending directly, not via Send Buffer

2006-02-20 Thread Wilfried Mestdagh
Hello Widita, > Yes, I'm going to use such long delimiter because I need to send binary > data... But your protcol will fail if this string is in the binary data you send. Dont tell me the chance is low. Think on Murphy's law: if it is possible then it will happen. --- Rgds, Wilfried [TeamICS] h

Re: [twsocket] OnDataAvailable called before shutdown with no data

2006-02-20 Thread Wilfried Mestdagh
Hello Jack, > So when I resume, > instead of setting the option, I can still use the Resume() > function to resume notification? I'm not sure I understeand completely what you ask but: - Pause will stop notification from winsock. If there is already data received then OnDataAvailable will keep

Re: [twsocket] Sending directly, not via Send Buffer

2006-02-20 Thread Wilfried Mestdagh
Hello Surabaya, >- If I send 1222bytes 5 times consecutively (delimited by >#13#10#10#13#11#11#13#10#10#13) I'm not sure if this has ever been tested by such long delimiter string. Wy such long delimiter ? Normally you need only 1 or 2 character. If you do this because you maybe send bin

Re: [twsocket] Sending directly, not via Send Buffer

2006-02-20 Thread Wilfried Mestdagh
Hello Arno, >> what is message pump? > For instance Application.ProcessMessages or anything else that > processes messages. Or creating a modal form. ShowMessage etc, are also modal forms. Often done for logging whilst developping. Better is to log to a console window or a memo or whatever. ---

Re: [twsocket] Problem with Thread(At/De)tach

2006-02-18 Thread Wilfried Mestdagh
Hello SZ, 2 type casts, is this legal ? (TObject*)(void*)msg.wParam --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, February 18, 2006, 15:23, Fastream Technologies wrote: > I found the problem: it is with THTTPConnection descende

Re: [twsocket] TWsocket in Threads and ShellExecute

2006-02-18 Thread Wilfried Mestdagh
Hello, In additions to the reply of Francois: In the rare occasions that I have a hidden window in a thread that has to be reused whole the time, I dont go into suspended but just do nothing. The messagepump I uses, uses GetMessage(), so if no message is post then GetMessage is in a wait state wit

Re: [twsocket] TWsocket in Threads and ShellExecute

2006-02-17 Thread Wilfried Mestdagh
Hello asvetov, This is normal behaviour in windows. If you create a (hidden) window in a thread you must pump messages or your system can deadlock. If you suspend a thread having a window then it cannot pump, so that is what you experiance. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/

Re: [twsocket] [QUESTION] THttpCli and SocketError

2006-02-17 Thread Wilfried Mestdagh
Hello Guillaume, I was just looking at it but see notes below. HttpCli.CtrlSocket.LastError; But THttpCli assigns an event handler to FCtrlSocket.OnError. So if nobody assign something to OnSocketError then the error is lost. TWSocket will not raise an exception if something is assigned to OnErr

Re: [twsocket] Properties and event declarations

2006-02-15 Thread Wilfried Mestdagh
Hello Dod, > Of course I use more meaningfull names in my real code :-) That was > just for sample. But please you confuse use choosing less meaning full names here :( > As I said, this is for my FAQ and I have no real problem using > TWSocketServer and TWSocket, I just try to remember

Re: [twsocket] Properties and event declarations

2006-02-15 Thread Wilfried Mestdagh
Hello Dod, > MySocket:=TWSocketServer.Create(nil); > MySocket.OnClientCreate:=MyOnClientCreate; > MySocket.OnClientConnect:=MyOnClientConnect; > MySocket.OnDataAvailable:=MyOnDataAvailable; Ok what you do wrong is followin: MySocket is a server. A server never receives data, so assigning to his O

Re: [twsocket] Properties and event declarations

2006-02-15 Thread Wilfried Mestdagh
Hello Dod, First of all you mentions 'OnClientDataAvailable'. Yo do mean OnDataAvailable event ??? > MySocket:=TWSocket.Create(nil); > MySocket.OnClientConnect:=MyOnClientConnect; > MySocket.OnClientDataAvailable:=MyOnClientDataAvailable; Thats correct and in most case a good programming techniq

Re: [twsocket] OnDataAvailable non-lined mode question

2006-02-13 Thread Wilfried Mestdagh
Hello Dod, Maybe another apprach is to use always a timeout and reset it every time data is received. But then you have to send keep alive packets to not get disconnected in case there is no real traffic needed. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://

Re: [twsocket] OnDataAvailable non-lined mode question

2006-02-13 Thread Wilfried Mestdagh
Hello Dod, > Using line mode OFF, if I do for example a .Send of 500 bytes, the > receiver should get just one OnDataAvailable event. Mostly, but not for sure. You can also receive more bytes if the sender sends a second packet a little later. TCP does not respect packet boundary. > If it wil

Re: [twsocket] DNSQuery - bugreport

2006-02-09 Thread Wilfried Mestdagh
ccurs at first cycle. > Greetings > Ann > Wiadomość Oryginalna > Od: Wilfried Mestdagh <[EMAIL PROTECTED]> > Do: ICS support mailing > Data: Thu, 9 Feb 2006 09:22:26 +0100 > Temat: Re: [twsocket] DNSQuery - bugreport >> Hi Ann, >> >> > Of

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

Re: [twsocket] ICS help system?

2006-02-08 Thread Wilfried Mestdagh
Hello, > I for instance hate to read source code with such included > comments, of course this is a question taste. To try the thing I made a help file of one of my components and I decided to keep the commented *.pas file for the help separate from the original *.pas file. So I agree with you a

Re: [twsocket] ICS help system?

2006-02-08 Thread Wilfried Mestdagh
Hello Tibor, This is a remarkable coincidence :) Just yesterday I mailed private this link to Francois: http://www.yunqa.de/delphi/pasdoc/ It create CHM files from source and looks to me very promising. However like al the other help projects we already did all depents of a few persons who pa

Re: [twsocket] httpClient, total bytes received / sent

2006-02-08 Thread Wilfried Mestdagh
Hello Marius, As Tibor noticed, just increment a integer and with a Timer you can update the UI every few seconds. This way you will not have performacne degrease. It is not the calculation that take time, it is graphical user interface is very slow. --- Rgds, Wilfried [TeamICS] http://www.overby

Re: [twsocket] Message Loop

2006-02-07 Thread Wilfried Mestdagh
Hello Markus, > 1. that should work, shouldn't it? Yes at first sitht it is ok. > 2. would pm_noremove be okay, or should I rather pm_remove? use pm_remove otherwise the messages will stay in queue an you only will reead first message. Also think over to use GetMessage(). Advantage is that it

Re: [twsocket] DNSQuery - what should i free up?

2006-02-07 Thread Wilfried Mestdagh
ose sockets > after reciving response? > Wiadomość Oryginalna ---- > Od: Wilfried Mestdagh <[EMAIL PROTECTED]> > Do: ICS support mailing > Data: Tue, 7 Feb 2006 11:31:01 +0100 > Temat: Re: [twsocket] DNSQuery - what should i free up? >> Hello Ann, >> &

Re: [twsocket] DNSQuery - what should i free up?

2006-02-07 Thread Wilfried Mestdagh
Hello Ann, I assume you mean winsock error 10055 (no buffer space available) ? Could be you have a leak, or that some other program has a leak. Sockets use non pageable RAM witch is very limited and also in use by other programs. I recall you use DnsQuery with TCP (right?). Closing a socket leave

Re: [twsocket] TWSocket Digest, Vol 155, Issue 3

2006-02-06 Thread Wilfried Mestdagh
Hello Markus, > only thing I'm yet unsure is the message processing part, but: another > day another idea or so the saying goes... ;-) the only thing that your execute methot has to do is ... create components assign event handlers as you have to do with no threads call message pump unt

Re: [twsocket] IP renewal

2006-02-06 Thread Wilfried Mestdagh
> I did't knew your IP would be changed with an active connection, > but appearently there are some providers that do :-( > I don't think there is much one can do ... > Paul > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]&

Re: [twsocket] IP renewal

2006-02-06 Thread Wilfried Mestdagh
Hello Paul, GetLocalAddr, but if the session is going trough a router wich does NAT you cannot know. You can then only by accessing the router trough his telnet / html protocol. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, February

Re: [twsocket] What is wrong in this code?

2006-02-06 Thread Wilfried Mestdagh
Rec)); >Query.Next; > end; > The code is still entering 2 times ... :( > / Ionut Muntean > Wilfried Mestdagh wrote: >> Hello Ionut, >> >> >>>The code is executed from OnClientDataAvailable of an TWSocketServer. >>>When the execution rea

Re: [twsocket] What is wrong in this code?

2006-02-06 Thread Wilfried Mestdagh
Hello Ionut, > The code is executed from OnClientDataAvailable of an TWSocketServer. > When the execution reach the "repeat .. until SentOk", on > ProcessMessages the code is reentered a second time. This is normal. When you start looping processmessages then your code can be reentered because m

Re: [twsocket] Closing socket

2006-02-03 Thread Wilfried Mestdagh
Hello Markus, > after calling shutdown, do I need to poll windows messages? > If yes, how to do it properly and in such a way that it only > polls as long as needed? You have to have a running message pump in the Execute method of the thread as Arno has showed. In OnSessionClosed you may post a

Re: [twsocket] still problems with terminating the socket

2006-02-03 Thread Wilfried Mestdagh
Hello Markus, > Okay, exception can be ruled out, the shutdown call is within try / > except and > I have a output in the except clause showing the exception. This doesn't > fire. There is something wrong that we cannot see. Consider one of your previous mails: > - output a debug message to eve

Re: [twsocket] wilfried mestdagh sockspy query

2006-02-03 Thread Wilfried Mestdagh
Hello, You can use OnSessionConnected. In that event you can send your autorisation string. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Friday, February 3, 2006, 04:22, [EMAIL PROTECTED] wrote: > hi > this question is about your socketsp

Re: [twsocket] still problems with terminating the socket

2006-02-02 Thread Wilfried Mestdagh
Hello Markus, > I will check next the thread ids as recommendet by somebody else. Also you need to check if the message pump is working in the right thread context. So you best check over there too. This because you mention that OnClose is never fired. I think I forgot to say that in my previous

Re: [twsocket] still problems with terminating the socket

2006-02-02 Thread Wilfried Mestdagh
Hello Markus, > I put some debug output in my OnSessionCLosed handler, it doesn't seem to be > called. > But I haven't yet debugged. See my other reply. If it is not fired, then eather ShutDown did not work because of some exception error, or eather the message pump of the thread where TWSocket

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-02 Thread Wilfried Mestdagh
Hello Markus, > How can I solve my problem? Which thread does the socket belon to > now? Does it belong to the thread in Use GetCurrentThreadID to find out the thread context of the code. Check this where the TWSocket is created and where you Destroy it. Check this also in some of the TWSocket e

Re: [twsocket] Problems with TWSocket.close and DLL

2006-02-01 Thread Wilfried Mestdagh
Hello Markus, > This is done because each thread does more things than just sending > receiving. The message was meant because many people think they need a thread per communication TWSocket channel. So I assume you have your own reason to have a thread. What you can do is Create and destroy TWS

Re: [twsocket] RasDial disconnect event

2006-02-01 Thread Wilfried Mestdagh
Hello Francois, > Sorry, no idea. Too long since I played with RAS API ! No problem. If I find something I let you know. Found something else strange also. Also it is with original demo program. - dial connection with PPP Deamon - connect socket client with tcp server listening on other side - (

[twsocket] RasDial disconnect event

2006-02-01 Thread Wilfried Mestdagh
Hello Francois, I need to make a datacall server with Ras dial up. So I take your RadDial as example. Works fine, only thing is that RASCS_Disconnected is never fired. It does not fire in your example eather. I'm testing it in winXP pro SP2. Maybe it does not matter becuase it seems RasHangupA i

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Wilfried Mestdagh
] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Monday, January 30, 2006, 09:51, Fastream Technologies wrote: > That's already what I did. However it still consumes 100% CPU!!! > Regards, > SZ > - Original Message - > From: "W

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Wilfried Mestdagh
tpClient::MessagePump(TObject *Sender) >> { >>httpServerClient->affinityThread->messagePump(); >> } >> //--- >> >> and it calls a GetMessage() based loop which is good. >> >> Regards

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
Object *Sender) > { > httpServerClient->affinityThread->messagePump(); > } > //--- > and it calls a GetMessage() based loop which is good. > Regards, > SZ > ----- Original Message - > From: "Wilfr

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
Hello Fastream, > FCtrlSocket->OnMessagePump = MessagePump; This was in fact the answer to my question. But what do you have written in MessagePump ? If it is the MessagePump method from TWSocket you are in an endless loop because MessagePump will call OnMessagePump if it is assigned. --

Re: [twsocket] THttpConnection throttling problem with timer

2006-01-29 Thread Wilfried Mestdagh
Hello Fastream, > pump data to client connection How do you pump ? Maybe that's the reason of 100% CPU ? --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Sunday, January 29, 2006, 16:37, Fastream Technologies wrote: > I stopped the timer and

Re: [twsocket] ICS website down?

2006-01-27 Thread Wilfried Mestdagh
Hello Arno, > 145-236-183-194.adsl.perceval.be [194.183.236.145] Here it stop also at same hop. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elist

Re: [twsocket] GpHTTPProxy and remote address info

2006-01-27 Thread Wilfried Mestdagh
Hello ibrahim, You can use GetPeerAddr method from TWSocket. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Friday, January 27, 2006, 10:28, ibrahim bulut wrote: > hi, > i am trying to use GpHTTPProxy component > how can i get the remote a

Re: [twsocket] Port Access

2006-01-24 Thread Wilfried Mestdagh
Hello David, The port is in use because the server listens on that port already, otherwise the client could not send it to that server. You can make the server listen on another port and then your application should act like a proxy intercepting all data. See SocketSpy or gpHttpProxy for example.

Re: [twsocket] OnDataAvailable called before shutdown with no data

2006-01-22 Thread Wilfried Mestdagh
Hello Jack, >> It suppress async notification. So you don't receive events anymore but I/O >> continue as much as winsock can, for example filling his receive buffer. > Got it. Wouldn't this be similar to ignoring OnDataAvailable event > and is vulnerable to DOS attack? If you call Pauze then wi

Re: [twsocket] OnDataAvailable called before shutdown with no data

2006-01-22 Thread Wilfried Mestdagh
Hello Jack, > if there is data available but do not want to actually remove > the data from twsocket's buffer. This is because I want to You can use Pauze / Resume but there is also a very simple way to do it, just set wsoNoReceiveLoop in SocketOptions to True and dont Receive in OnDataAvailable,

Re: [twsocket] GpHTTPProxy component

2006-01-21 Thread Wilfried Mestdagh
ach the internet. > i am working on a local network (adsl) > what i must do > is there another way to do it without proxy > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Saturday,

Re: [twsocket] TGpHTTPProxy and Banner in footer

2006-01-21 Thread Wilfried Mestdagh
Hello scanctrl, > Ok, howto place my code to analyze the HTML ? > and how to make to send my additional string to browser ? GpHttpProxy has somewhere a parser (to parse the GET's). At some point you can expand the code to search for . At that point you can send your data. --- Rgds, Wilfried [Tea

Re: [twsocket] GpHTTPProxy component

2006-01-21 Thread Wilfried Mestdagh
Hello ibrahim, You have to set the proxy settings of your browser to the host name or IP where you run gpHttpProxy on. When it is on the same machine you use localhost or 127.0.0.1. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, Ja

Re: [twsocket] TWSocket sending UDP

2006-01-21 Thread Wilfried Mestdagh
Hello Shane, You need to call Connect. However you do not have to wait and you can call SendTo immediatly after calling Connect. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, January 21, 2006, 05:08, Shane Mitchell wrote: > Hey.

Re: [twsocket] HttpCli + Timeout How To??

2006-01-20 Thread Wilfried Mestdagh
Hello Mac, > How i implement a timeout control in HttpCli... Use async call's and a timer. when timer expires call abort, when request is done disable timer. > I using HttpCli in sync mode, because i need to run it in Thread.. You can use async mode in a thread as well. There is no differen

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Wilfried Mestdagh
t, > than where can I get the handle? > Paul > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Thursday, January 19, 2006 10:06 PM > Subject: Re: [twsocket] using Api form with message l

Re: [twsocket] [re] databuffer is cut off

2006-01-19 Thread Wilfried Mestdagh
Hello albert, thanks for feedback. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Thursday, January 19, 2006, 21:51, albert drent wrote: > The CloseDelayed in the ondatasent was the solution THANKS!!! It's > sooo logical I'm ashamed I didn'

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Wilfried Mestdagh
Hello Paul, > You can't post a message to a program without a form Yes you can. The addresee only have to have a (hidden) window. > To post or send a mesaage, you always need a handle to > post the message Yes but the handle can be a (hidden) window. Not nececarly a TForm. Probably we are talki

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Wilfried Mestdagh
://www.mestdagh.biz Thursday, January 19, 2006, 21:35, Paul wrote: > Hi Wilfried, > that sounds like the console mode programs. > I need to create a form myself, because it has to communicate > with another program thru messages. > Paul > - Original Message -

Re: [twsocket] HTTP POST - SendStream With TMemoryStream

2006-01-19 Thread Wilfried Mestdagh
Hello, I have started a new thread for this, because this one is a reply of "Sending 7 Kilobytes of data" whitch I was interested to follow and this one is not my 100% interest or knowledge. Please answer to the new thread only. Many modern email readers can sort on thread whitch is very nice, so

Re: [twsocket] using Api form with message loop

2006-01-19 Thread Wilfried Mestdagh
Hello Paul, Yes look at the examples. One of them (sorry forgot the name) create a form on the fly. But you can do same without form whitch will save probably some more memory. Create a class, create the ICS component you wants (whitch will create a hidden window), and execute the message pump fro

Re: [twsocket] [re] databuffer is cut off

2006-01-19 Thread Wilfried Mestdagh
Hello Albert, > Display(IntToStr(SendStr(Encrypt(AnswerData.CommaText) + #13#10))+'bytes > sent'); > CloseDelayed; There could be 2 problems here. The first is Close already mentioned by Arno, and the other is Encrypt. Are you sure #13#10 will be never in your encrypted string ? --- Rgds, Wilfr

Re: [twsocket] fast data sending

2006-01-18 Thread Wilfried Mestdagh
Hello, > Each throttler requires a different interval. Perhaps a timer of 1ms > interval can cover all? I dont know the limit of windows timers, but indeed 1 timer can cover all timings. 1 ms is not realistic because of the time slice of winows. Workstations OS has time slice of 13 ms or somethin

Re: [twsocket] fast data sending

2006-01-18 Thread Wilfried Mestdagh
> I think the limit for handles is for "window handles" and the handles > created by Winsock are not windows. Yes this limit is the limit of windows. Not the limit of handles. Sure somewhere there could be a limit of handles, but I espect this is only a limit so high that we does not have that to

Re: [twsocket] fast data sending

2006-01-18 Thread Wilfried Mestdagh
Hello Dod, To be as correct as possible: - TWSocket used no non-pagable memory, neahter does his buffers. - Only Winsock does use it for the socket, for send and for receive. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz -- To unsubscribe

Re: [twsocket] fast data sending

2006-01-18 Thread Wilfried Mestdagh
Technologies wrote: > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Wednesday, January 18, 2006 10:36 AM > Subject: Re: [twsocket] fast data sending >> I dont mean TTimer, because that TTimers

Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Wilfried Mestdagh
e then one would like. > Paul > - Original Message - > From: "Wilfried Mestdagh" <[EMAIL PROTECTED]> > To: "ICS support mailing" > Sent: Tuesday, January 17, 2006 9:51 PM > Subject: Re: [twsocket] Bandwidth control TFtpClient >> Hello An

Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Wilfried Mestdagh
Hello Angus, My opinion too, but it seems a popular item :) If I write an application my concern is to get as muth data in short possible time. But others seems to like to delay it :) I dont know the reason... --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://w

Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Wilfried Mestdagh
Hello Arno, I dont think the control channel of FTP needs throttling, only data channel. Only my personal opinion of course. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, January 17, 2006, 19:57, Arno Garrels wrote: > Hi, > I've

<    1   2   3   4   5   6   7   8   >