Re: [twsocket] UDP datagramreceive periodically freezes for seconds

2005-03-17 Thread Wilfried Mestdagh
Hello Udvari, TWSocketServer does not handle UDP, only TCP. --- Rgds, Wilfried http://www.mestdagh.biz Thursday, March 17, 2005, 16:28, Udvari Andrs Lszl wrote: Hi List, I wrote a little client-server application, which measures UDP datagram transfer speed. The server is using

Re[2]: [twsocket] router and IP

2005-03-17 Thread Wilfried Mestdagh
Hello, detecting whether they are using either a proxy or router Should i ask them at setup or is it detectable? There is a lot detectable but nothing is 100% safe. Check IPhelper on overbyte.be which has lots on board. --- Rgds, Wilfried http://www.mestdagh.biz Friday, March 18, 2005,

Re: [twsocket] Newbie here

2005-03-28 Thread Wilfried Mestdagh
Hello Andy, First of all, you dont need threads if you wants to have multiple connections. All go in main thread also. Could be that you need a thread or many, but certainly not for this reason. If the encryption of the data is a lenghty operation then it can maybe in your database class. This

Re: [twsocket] HTTPClient

2005-04-04 Thread Wilfried Mestdagh
Hello Robert, If the server does not give you the length, then it is impossible to know. ps: please dont reply on a thread if you start a new topic. Many people will not see your question if they use an email reader that sort on topic and when they dont follow the topic. I only saw it by

Re: [twsocket] FD_ACCEPT and FD_READ

2005-04-05 Thread Wilfried Mestdagh
Hello Melvin, Wrong concept. A Server socket only listens for incoming connections. In OnSessionAvailable the incoming socket has to but accepted to a 'data socket'. So server does nothing else but listening, it does never send/receive data. There is an example with TWSocket in the ICS package,

Re: [twsocket] udp broadcast on all interfaces?

2005-04-05 Thread Wilfried Mestdagh
Hello Jack, Seems you have a subnet mask of /16 Then the broadcast ip has to be: 192.168.255.255 If mask is /16 then it has to go out on all interfaces (I never tryed this). --- Rgds, Wilfried http://www.mestdagh.biz Monday, April 4, 2005, 20:26, Jack wrote: Hello Francois and all, I am

Re[3]: [twsocket] udp broadcast on all interfaces?

2005-04-05 Thread Wilfried Mestdagh
Hello Jack, Is there an easy way to get default gateway and subnet mask? Dont know but check IPHelper on user made page. I'm pretty sure it is put in it. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, April 5, 2005, 16:50, Jack wrote: Hello Wilfried, Thank you for the reply. I am

Re[2]: [twsocket] udp broadcast on all interfaces?

2005-04-05 Thread Wilfried Mestdagh
Hello Corey, No -1 is refused by most (if not all) routers. Normal because you then could do a broadcase along _all_ IP around the world.. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, April 5, 2005, 21:23, Corey Murtagh wrote: Jack wrote: snip It looks like the simple solution is to

Re: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-09 Thread Wilfried Mestdagh
Hello Mice, I'm working on a ftpclient. If it is possible with FTPCLI I want to add a feature to setup the maximal downloadspeed Several aproach are possible. One aproach is to create FtpCli in a thread and use throttling code you can find on http://www.smatters.com/ics Other aproach are to

Re[2]: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-10 Thread Wilfried Mestdagh
Hello Mice, The code at http://www.smatters.com/ics is not from me, it is from Davie (its been a while we heard from him). But I thought there was a brief example on how to use it, maybe in top of file in comment ? The principly is following: you iuse the component in a thread. Davie's code

Re[4]: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-10 Thread Wilfried Mestdagh
Hello Mice, TSMThrottle_Delay(Count,2,true); When the Delayfunction starts to work the whole amp starts to freeze See the ForceSleep argument in the delay function. If you set it (like you did), it uses sleep to delay. when you use sleep your application stops pumping messages, so it

Re[6]: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-10 Thread Wilfried Mestdagh
Hello Mice, Application.ProcessMessages; Sleep(x); Bad idea :( Pumping messages will have your event re-entered and thus produce unpredicable results. If you wants to do that then you have to write a mechanism to prevent it. It is mutch better to use the MsgWait function, as I

Re[8]: [twsocket] Is there a way to setup a value for maximal downloadspeed?

2005-04-10 Thread Wilfried Mestdagh
Hello Mice, Do You have a exsample for msgWait? this is my previous mail. You probably overlooked, or not yet received: See the ForceSleep argument in the delay function. If you set it (like you did), it uses sleep to delay. when you use sleep your application stops pumping messages, so it

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
Hello Ann, Several scenario's are possible. Depending on what you exacly have to do it is maybe interesting to make a separate class that manages the connections. But the principle is always the same. - you mention you need timeout, So you derive a component from THttpCli and give it a timer. -

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
Hello Ann, What will happen when someone will change the system time? What does (TDataTime-TDataTime) return? miliseconds? DateTime returns the day's elapsed since 30 dec 1899. eg: 2 is 1 jan 1900 00:00, 1.5 is 1 jan 1900 12:00 etc. Meaning the fractions ar jsut the fractions of the day. It go

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
Hello Ann, Sorry I was incomplete :( What will happen when someone will change the system time? Then you are in trouble :( What does (TDataTime - TDataTime) return? miliseconds? From the top of my head: var BeginTime: TDateTime; EndTime: TDateTime; begin AllocConsole; // open a

Re[4]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
Hello Arno, Sorry for being OT No it is not OT, it is interesting since timeouts are often handled in comm programs. I have no Delphi open, but I have some programs where I have separate class to get me elap seconds, minutes etc. Something like this (whitch will rollover after 136 years, so

Re[2]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
Hello Angus, you are ritght because working with float is more CPU. But GetTickCount roll over every 49 day... So without extra code the timeout can fail if it is (by Murphy's law) just on the particular moment.. --- Rgds, Wilfried http://www.mestdagh.biz Sunday, April 17, 2005, 19:35, Angus

Re[4]: [twsocket] Multithreaded http...

2005-04-17 Thread Wilfried Mestdagh
Hello Ann, in On requestDone: THttpCli(Sender).RcvdStream --- Rgds, Wilfried http://www.mestdagh.biz Sunday, April 17, 2005, 22:10, Ann wrote: - Original Message - From: Marco van de Voort [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, April 17, 2005

Re[6]: [twsocket] Multithreaded http...

2005-04-20 Thread Wilfried Mestdagh
Hello Ann, AStream.Seek(0, sofromBeginning); --- Access Violation... Probably the stream is invalid or not assigned. Try this: if Assigned(AStream) then AStream.Seek(0, soFromBeginning); This does a check if the pointer contain nill or a value. --- Rgds, Wilfried http://www.mestdagh.biz

Re[2]: [twsocket] Reasonable timeout

2005-04-23 Thread Wilfried Mestdagh
Hello Arno, I recall that we had a discussion in this list a while ago, but there seems to be nothing in FAQ yet. I have a lot of saved mails to put in the FAQ. Maybe I recalled some of them. Need to find some time soon to upgrade FAQ. Will drop a message as always when done. I just wonder

Re: [twsocket] Reasonable timeout

2005-04-22 Thread Wilfried Mestdagh
Hello Arno, 2. How can I catch and handle a system TCP timeout in ICS? and You will get the 10060 (conn timed out) as error argument in the TWSocket events. 1. How do I find the actual system TCP timeout? Dont know, somewhere in registry I suppose. I _think_ we have a FAQ but I cannot search

Re[2]: [twsocket] Reasonable timeout

2005-04-24 Thread Wilfried Mestdagh
I think the timeout applies only to blocking socket correct :) I also found some resources witch confirm that, but I lost them :( --- Rgds, Wilfried http://www.mestdagh.biz Sunday, April 24, 2005, 11:33, Francois PIETTE wrote: I think it's not supported, since I added the block below to

Re[2]: [twsocket] Redirect a browser to another port

2005-04-25 Thread Wilfried Mestdagh
Hello Guillaume, Yes this works as a glance. Ter info THttpCli has a property RequestHostName witch returns the original host in the GET. And yes it is without the 'http://'. --- Rgds, Wilfried http://www.mestdagh.biz Monday, April 25, 2005, 14:22, Guillaume MAISON wrote: I have HTTP server

Re[2]: [twsocket] Redirect a browser to another port

2005-04-25 Thread Wilfried Mestdagh
Hello Bjørnar, instead of using a timer. You might use OnDataSent and check the property AllSent before closing down. Then you can post a custom message to close down the server instead of using a timer, a slow line could use more than 500 ms. It is typical used on LAN or fast lines. However

Re[3]: [twsocket] Redirect a browser to another port

2005-04-25 Thread Wilfried Mestdagh
THttpCli has a property I meanth THttpConnection --- Rgds, Wilfried http://www.mestdagh.biz Monday, April 25, 2005, 15:11, Wilfried Mestdagh wrote: Hello Guillaume, Yes this works as a glance. Ter info THttpCli has a property RequestHostName witch returns the original host in the GET

Re: [twsocket] Messages

2005-05-03 Thread Wilfried Mestdagh
Hello Markus, You can use the messagepump of one of the TWSocket you creeate. Be sure to set MultiThreaded to True; You have to create all components IN Execute method of the thrad, assigne all events, and then just call the messagepump of 1 of the components. Dont forget to destroy all

Re: AW: [twsocket] Messages

2005-05-03 Thread Wilfried Mestdagh
Hello Markus, If you call the message pump, then depending on who called your code, your function can be re-entered. For example if the caller himself comes from the messagepump then it can be calling again if message in queue. Most of the time pumping messages in code is a bad idea and should

Re: AW: [twsocket] ProcessMessages

2005-05-03 Thread Wilfried Mestdagh
Hello Markus, So the sending part must be in another thread and call MessageLoop as well until the OnDataSent terminates the thread? No you may only call methods of a component in general in the same thread context as the one where they are created. Same thing for the message pump, you have to

Re[2]: [twsocket] Messages

2005-05-03 Thread Wilfried Mestdagh
Hello Bjørnar, Is the code really running in thread-context? Good point. He has to check (but I alrady think I mentioned this) that MultiThreaded is set to True. Try GetCurrentThreadId to check current thread context. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change

Re: [twsocket] Messages

2005-05-03 Thread Wilfried Mestdagh
Hello Markus, For the receiving part I did this (the contents of tthread execute): udp.MessageLoop; Are you very sure this is exacly what you want ? MessageLoop will pump messages, but will actually stay there until a WM_QUIT is received. If you dont watch carefully you will end up with a

[twsocket] Error in OnDataAvailable

2005-05-03 Thread Wilfried Mestdagh
Hello, In all these years I cannot remember I ever had a winsock error in OnDataAvailable of TWSocket. Someone has ??? Any other such expriances ? I think this is intersting to share. -- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing

Re: AW: [twsocket] Messages

2005-05-04 Thread Wilfried Mestdagh
Hello Markus, I know that this is bad design, but that is used only for testing the dll Later it will be replaced by another dll which really will be event driven First of all, writing event driven is in fact more simple that sequentional programming if you are used to do it. Secondly you are

[twsocket] Datetime in mail headers

2005-05-08 Thread Wilfried Mestdagh
Hello, If I examen email headers datetime like this example: Received: (qmail 31614 invoked from network); 6 May 2005 08:41:49 - Date: Fri, 6 May 2005 10:41:42 +0200 it is always in english (I mean the day and month). I need to make email headers but using the normal DateTimeToStr

Re[2]: [twsocket] Datetime in mail headers

2005-05-09 Thread Wilfried Mestdagh
Hello Guillaume, they're just control headers to trace I think, if it is to show the email date, you have a 'Date' header. You right, I dont need them. Only the 'Date:' header to let display the datetime in mail reader. I want to make the headers as minimal as possible. Do I need the

Re: [twsocket] OnDataAvailable

2005-05-10 Thread Wilfried Mestdagh
Hello Melinda, TWSocketServer has this events (and some others) because it is derrived from TWSocket. But a server will never get any data. A server create local data sockets (mostly called Clients, but this is confusing sometime). So in OnClientConnect you have a client whitch is also derived

Re: [twsocket] project, error

2005-05-10 Thread Wilfried Mestdagh
Hello Nik, I was in between 2 smaller projects so I taked the time to download again. Seems nice, only I could not test the application since you listen on a specific IP address instead of '0.0.0.0'. So I opened project, ignored all components I do not have, removed the units I do not have and

Re: [twsocket] Thanks

2005-05-10 Thread Wilfried Mestdagh
Hello Nik, Thank you very very very mutch, spended already many hours Its my pleasure. In fact I found it very quick. I myself forgot a few tiem the ClientClass in the beginning, so looking at your code I certainly tought on it :) I was looking for an OnDataAvailable in main code and did not

Re[2]: [twsocket] Datetime in mail headers

2005-05-11 Thread Wilfried Mestdagh
Hello Piotr, If you're using US-ASCII, consider using Content-Transfer-Encoding: 7bit. Yes at the moment. But later there will be mails with French and maybe German characters in it. So I assume I need the: 'Content-Transfer-Encoding: quoted-printable' Am I right here ? --- Rgds,

Re: [twsocket] Use same component for both sending and receiving

2005-05-12 Thread Wilfried Mestdagh
Hello Dod, For UDP you can use same TWSocket. Remember that the protocol is not reliable by design and that you have to be prepared of lost packets (or double, or out of order, even corrupt). --- Rgds, Wilfried http://www.mestdagh.biz Thursday, May 12, 2005, 09:39, Dod wrote: Hello, Small

Re: [twsocket] Reuse Port ( TIME_WAIT )

2005-05-12 Thread Wilfried Mestdagh
Hi, So, there are many remaining TIME_WAIT sockets on apache. The program that does the closing will have the TIME-WAIT state for a while. This is normal and the way windows work. There is a registy key somewhere where you can shorten that time. --- Rgds, Wilfried http://www.mestdagh.biz --

[twsocket] who disconnects in HTTP proto ?

2005-05-12 Thread Wilfried Mestdagh
Hello, Who must close the session in HTTP proto ? The server or the client ? Reason is that I have TWSocketserver, with custom made protocol and there could be a HTTP client connect to it. Then I will send a HTTP redirect (302) to it. This is no problem but should I close session in the server

Re: [twsocket] [HELP]FTPServer within a service...

2005-05-18 Thread Wilfried Mestdagh
Hello Guillaume, On my site you find a simple class to include in your GUI program so that the same EXE can run as normal GUI and also as NT service without any change. Advantage is that the service can make a tray icon when user log in, and if you click on it the service can popup his main

Re: [twsocket] Receive result of the first ReceiveStr() call twice

2005-05-18 Thread Wilfried Mestdagh
Hello Jack, Can you show your OnDataAvailable handler ? Eventually download SocketSpy from 'user made' page and 'hang' it between client and server. Then you see exacly what is sent by server. --- Rgds, Wilfried http://www.mestdagh.biz Wednesday, May 18, 2005, 20:48, Jack wrote: Hello

Re[3]: [twsocket] Receive result of the first ReceiveStr() call twice

2005-05-19 Thread Wilfried Mestdagh
Hello Jack, the first string in both cases. So it shouldn't be the server sending the string twice. No but you close the connection. When you close TWSocket will empty his receiving buffer if there is yet still data in it. So I think that is what happening. --- Rgds, Wilfried

Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-21 Thread Wilfried Mestdagh
Hello Bruno, If I don't add the line, the code runs fine (it shows the entire page, there is no problem in this), but the connection remains open - the progress bar in IE 6 remains there and you see a connection open in the server. If you Possible you have siltent exception error somewhere.

Re[2]: [twsocket] Connection not closed in WebServer with IE

2005-05-22 Thread Wilfried Mestdagh
Hello Bruno, I just downloaded the demo from Francois, and tryed the server on 3 different machines (NT, W2K, XP), and every time connected with the 3 machines with IE (different versions) to the server/bruno.html. Works every time here. Also I have a several project with the HttpSrv without

Re[4]: [twsocket] Connection not closed in WebServer with IE

2005-05-22 Thread Wilfried Mestdagh
communications, like an antivirus. The only questions that remain are: why does this happen only with virtual pages and not with documents? Why does this happen only with IE and not with FireFox? Bruno On 22/5/2005 13:05:52, Wilfried Mestdagh ([EMAIL PROTECTED]) wrote: Hello Bruno, I just

Re[6]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Wilfried Mestdagh
Hello Bruno, Try this - go to Internet Options, Advanced, and uncheck Use HTTP 1.1. With your header, the server you are developing should show the same behavior Yes you right. Then I see same problem. But there is also one other thing, and this I could not track, maybe it's some setting in

Re[6]: [twsocket] Connection not closed in WebServer with IE

2005-05-23 Thread Wilfried Mestdagh
Hello Bruno, But there is also one other thing, and this I could not track, maybe it's some setting in the server: the connection remains open after you do the if ((FVersion = 'HTTP/1.0') and (CompareText(FRequestConnection, 'keep-alive') 0)) or { Jack }

Re[2]: [twsocket] Latest revision May, '05 entering URLs

2005-05-27 Thread Wilfried Mestdagh
Hello Bob, I just tested with my IE the http://132.163.4.102:13 and the http://132.163.4.102:14 and both respond with a time line. But neither of these work with the ICS demo's. These time servers does not do HTTP protocol. Better do this with just TWSocket. --- Rgds, Wilfried

Re[2]: [twsocket] Interface used to reach a specific IP

2005-05-28 Thread Wilfried Mestdagh
Hello Maurizio, if you outbound a tcp session the client machine will follow his route table to reach the destination machine. you can check this out with 'route print' command. on user made page there is IPHelper whitch let you do all these things from within Delphi. --- Rgds, Wilfried

Re[2]: [twsocket] Non-LineMode Protocol Sending and Receiving

2005-05-31 Thread Wilfried Mestdagh
Hello Wesley, If I have LineMode off, that means I have to either 1) look for a terminator or 2) accept x many bytes and then act on the information I have so far, correct? yes Again, as I've seen in archive here before, what happens if my information gets processed in two batches

Re[2]: [twsocket] Non-LineMode Protocol Sending and Receiving

2005-06-02 Thread Wilfried Mestdagh
Hello Wes, In addition to the advice of Francois is what I often do if designing a protocol that is both ascii data (for commands) and binary data packets, is to preceide the packet with a length in hexadecimal form (byte, word or dword). Wy ? Because if most of the data is ascii command then it

Re[2]: [twsocket] Folder names in THttpServer

2005-06-05 Thread Wilfried Mestdagh
Hello, I just recall, that I hade a long time ago a simular problem with a French customar. He gived me text in a file, that I should transmit to vehicles. At a certain moment he was changing to new machines, and lots of parts of text where corrupted in my logs. However in the customar's log not

Re[2]: [twsocket] Folder names in THttpServer

2005-06-05 Thread Wilfried Mestdagh
Hello Peter, this confirms my reply I did an hour ago or so. One program wrote to files (written in VB), and other program (written in Delphi) was reading corrupted text. The text was always corrupted in the first bytes and here and there also. Most part was OK. And the log's of the VB program

Re: [twsocket] No response problem [THttpServer - TCustomLineWSocket]

2005-06-20 Thread Wilfried Mestdagh
Hello Christophe, - How to force FLineMode to be true, or more generally how to solve such a problem. (I tried to do a (Client as THTTPConnection).LineMode:=true in the OnClientConnect event but it doesn't change a thing). In OnPostDocument you have to set LineMode to False (since binary data

Re: [twsocket] Help: How do I Use the asyn. methods in a D2005 service app

2005-06-23 Thread Wilfried Mestdagh
Hello Dave, From the top of my head, in the TService's Execute method: while not Terminated do ServiceThread.ProcessRequests(True); There is also 1 or 2 NT service examples coming with ICS. Also you can use a normal GUI also as service. I have a little class for it you can download from my

Re: [twsocket] Assign event handler to manually created TStmpCli

2005-06-24 Thread Wilfried Mestdagh
Hello Patrick, TSyncSmtpCli is discouraged to use because it is very old and therefore not really supported anymore.Use TSmspCli instead. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

[twsocket] email notification

2005-06-26 Thread Wilfried Mestdagh
Hello, To send a mail and ask a receive notification, witch one is common used, I find these 2 but they confuse me a little because I think they mean more or less the same: Disposition-Notification-To: [EMAIL PROTECTED] Return-Receipt-To: [EMAIL PROTECTED] -- Rgds, Wilfried

Re: [twsocket] problems with OnDataAvailable

2005-06-27 Thread Wilfried Mestdagh
Hello Frank, You use methods for UDP to receive, and you use TCP. Another problem is that you use a ShowMessage in the event handler witch call the message pump, so your ondataavailable can be re-entered if you send next packet whil the window is still open. Probably this is for test/logging but

Re: [twsocket] detecting disconnect from twsocketserver

2005-06-27 Thread Wilfried Mestdagh
Hello Frank, e.g. when the lan-cable is taken out. the client detects the disconnect It will detect when it try to send something, in most cases it will NOT detect anything. Thats the nature of TCP. As Arno stated you have to maintain keep alive packets in your protocol if you want to be

Re: [twsocket] Assign event handler to manually created TStmpCli

2005-06-28 Thread Wilfried Mestdagh
Hello Patrick, to see what goes wrong. However in the Pascal unit the Watch and Debug - Inspect features of the C++ Builder IDE are not workable. I'm not 100% sure, but I thought you dan step trough pascal units with cbuilder. Try to delete the SmtpProt.obj and SmtpProt.dcu files (maybe only

Re: [twsocket] Assign event handler to manually created TStmpCli

2005-06-29 Thread Wilfried Mestdagh
Hello Patrick, BTW, the mail can be sent out by ignoring the error. Calling the exe out of the IDE does not have error at all. This is very strange. It looks to me a CBulder IDE bug. Can someone confirm this ? I have no CBuilder installed at the moment, but is there someone who can step

Re: [twsocket] Missing disconnect from GPRS units

2005-06-30 Thread Wilfried Mestdagh
Hi Andy, What Angus do is an approach, but indeed as he claim, it can get a expencieve, specially when the vehicles are in other countries. You also have to be aware that another vehicle can connect with an IP address of a 'loosed' vehicle, so then you have on your server 3 connections with same

Re[2]: [twsocket] Listenbacklog

2005-07-01 Thread Wilfried Mestdagh
socket. If that queue is full a connecting client gets a winsock error (I forgot the error number). I think it is the normal 10061 (connection refused). A whell behaving client should do at least a certain count of retrys. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or

Re: [twsocket] Servertimeout ... i don't get it working

2005-07-01 Thread Wilfried Mestdagh
Hello Frank, the client has the event OnChangeState but the server have nothing like this for the client-connection-lost (not disconnect). There is no event for a looze connection. If you pull out the network cable from the client, then both server and client will stay connected, because to

Re[2]: [twsocket] Servertimeout ... i don't get it working

2005-07-01 Thread Wilfried Mestdagh
Hello Frank, its right, that have i trying, too. but this recognizes only normal disconnect and fires an AccessViolation. ; As I have explained in at least 2 other replys, a disconnect is a packet sent to the socket. If no packet can be send because for example the network cable is pulled out,

Re[2]: [twsocket] Servertimeout ... i don't get it working

2005-07-01 Thread Wilfried Mestdagh
Hello Frank, Strange... I will try to do a test case this weekend for you. --- Rgds, Wilfried http://www.mestdagh.biz Friday, July 1, 2005, 16:20, Frank Wunderlich wrote: Wilfried Mestdagh schrieb: Hello Frank, the client has the event OnChangeState but the server have nothing like

Re[4]: [twsocket] Servertimeout ... i don't get it working

2005-07-01 Thread Wilfried Mestdagh
Hello Moacir, Well, i´m seeing this kind of question so many times... and you people answering it again and again... nothing agains our´s friends whoe question, Yes you right. I will save this mails to edit an article in the FAQ ! --- Rgds, Wilfried http://www.mestdagh.biz Friday, July 1,

Re: [twsocket] MimeDecode

2005-07-02 Thread Wilfried Mestdagh
Hello Dmitry, I called MimeDec::DecodeFile() with attached file as argument, Attachments are stripped of in this mailing list. Please upload it somewere then it can be tested by some people. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] Modal Forms

2005-07-06 Thread Wilfried Mestdagh
Hello Simon, the problem that modal forms cause - ie they stop message processing and hence socket I/O. A modal form dont stop any message processing, nor socket I/O. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list

Re[2]: [twsocket] What approaches to use for filtering messages inTWSocket windows?

2005-07-11 Thread Wilfried Mestdagh
Hello Stanislav, not possible to set the first socket in the wait state Pause / Resume switch on / off a wait state. --- Rgds, Wilfried http://www.mestdagh.biz Wednesday, July 6, 2005, 12:29, Stanislav Korotky wrote: Hello, All! Thank you, Wilfried and Arno, for answering. I suppose I

Re: [twsocket] TWSocket descendant with messaging?

2005-07-11 Thread Wilfried Mestdagh
Hello Nicholas, In fact it is LineMode that does that for you. You only need a character there that is not in the data (or a character sequence). Other approach is to send packets with fixed length, or have a byte / word / dword in beginning of packet with the size, this can be binary if it is

Re: [twsocket] No connection with TCP/IP over VPN

2005-07-14 Thread Wilfried Mestdagh
Hello Menno, To troubleshoot these steps to follow (not nececarly in sequence): 1. ping the host, if reply then route is ok 2. telnet to the host, if connect then TWSocket connect also 3. very importand: What's the winsock error ? Because this will tell you what exacly is wrong etablishing the

Re: [twsocket] Bind Exceptions

2005-07-15 Thread Wilfried Mestdagh
Hello Wesley, Next time please write down at least the winsock error :) In this case you have 10048 witch means that the address already in use (by your other instance of your program). address + port is exclusive (in fact it is proto + address + port). --- Rgds, Wilfried

Re[2]: [twsocket] Bind Exceptions

2005-07-16 Thread Wilfried Mestdagh
can change the OnError to allow me to actually take action on that Winsock error if and when my program gets to it? Thanks, Wes Wilfried Mestdagh wrote: Hello Wesley, Next time please write down at least the winsock error :) In this case you have 10048 witch means that the address

Re[2]: [twsocket] No connection with TCP/IP over VPN

2005-07-16 Thread Wilfried Mestdagh
Hello Menno, As for the Telnet experiment: the controller that is on the other end of the line only supports TCP/IP; it's not a PC or I meant not to communicate with the other end, just to see if connection can be etablished from that machine to the device. back to 8. The only error that

Re: [twsocket] error dnslookup

2005-07-16 Thread Wilfried Mestdagh
Hello, the ip, if it is ip it should give me host, but it does not, it works only with hosts Not exacly. If you call it with IP then DNSLookupDone is just called immediatly with the IP address. Only if you pass it a hostname then a DNS lookup is done in background and OnDNSLookupDone is called

Re[2]: [twsocket] error dnslookup

2005-07-16 Thread Wilfried Mestdagh
Hello Arno, As I understand the OP he wants to do a reverse DNS lookup. As far as I know this is possible with TDnsQuery only. There is also a ReverseDNSLookup method. It will call also OnDNSLookupDone when it is done. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change

[twsocket] SMTP FromName

2005-07-17 Thread Wilfried Mestdagh
Hello, the MAIL FROM: ... or in Smtp client FromName, what is original meaning of it? I have tryed with several SMTP servers and I can fill in whatever I want, it is always accepted, and for the mail reader only the headers are used. Or could it be that some SMTP servers have a list with valid

Re: [twsocket] SMTP FromName

2005-07-17 Thread Wilfried Mestdagh
Hello Arno, So if I understeand it right, when the server is not possible to deliver the mail, then it uses that address to return an 'undeliverable' mail ? --- Rgds, Wilfried http://www.mestdagh.biz Sunday, July 17, 2005, 19:05, Arno Garrels wrote: Hello Wilfried, the MAIL FROM: ... or in

Re: [twsocket] [OT] elists.org new server is really fast !

2005-07-21 Thread Wilfried Mestdagh
Hello Francois, Yes !! --- Rgds, Wilfried http://www.mestdagh.biz Thursday, July 21, 2005, 20:20, Francois PIETTE wrote: Have you noticed how fast is the new elists.org server ? When you post a message to the list, it is distributed everywhere within a few minutes instead of sometimes one

Re: [twsocket] Acting as Server/Client

2005-07-24 Thread Wilfried Mestdagh
Hello Wesley, TWSocket can connect and listen, but not the same siultanously. Use TWSocketServer for Server and TWSocket for client. Eventually you can derrive your TWSocketclass from TWSocketClient, and use this class for client, and assigne this same class to TWSocketServer. This way you have

Re: [twsocket] Monitor sockets components

2005-07-27 Thread Wilfried Mestdagh
Hello Angus, Testing it. Seems good ! --- Rgds, Wilfried http://www.mestdagh.biz Monday, July 25, 2005, 21:36, Angus Robertson - Magenta Systems Ltd wrote: I've just written two new components for monitoring ethernet packets: 1 - Raw sockets (W2K and later) using ICS, does not any other

Re: [twsocket] Using TPop3Cli

2005-07-30 Thread Wilfried Mestdagh
Hello Äìèòðèé, You have to do next action in OnRequestDone. TPop3Cli is asynchronous doing the work in background while your application can go on with other things to do. Just do a switch (RqType) in the requestdone for the next action. No need for all that sequentinal progrmming :) --- Rgds,

Re: [twsocket] FTP Client - Size() Function

2005-07-31 Thread Wilfried Mestdagh
Hello Frank, is there any parsing routine available which works for windows and unix-servers? Yes, search on http://www.smatters.com/ics --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

[twsocket] SMTP server reply codes

2005-08-04 Thread Wilfried Mestdagh
Hello, Busy with TSmtpCli will used on a local network only. I'm looking at the reply codes the SMTP server can give. Im I right that: the 400 range can be interpreted as 'try again later' the 500 range as 'this is no good, dont do this again' -- Rgds, Wilfried http://www.mestdagh.biz --

Re: [twsocket] TSyncSmtpCli - ConnectSync results in 10004 error

2005-08-09 Thread Wilfried Mestdagh
Hello Boxer, Normally you handle that error as a 'try again later' event. 10004 means 'interupted function call'. This error returns if a socket is closed (or an application is terminated) while a pending winsock operation was in progress for that socket. Since you only have it on 1

Re: [twsocket] FTP as system service: Cannot convert port 'ftp-data'

2005-08-12 Thread Wilfried Mestdagh
Hello Brian, The folder where the file is in a registry key. It is mentioned once a while in this group. Eventually try the searchable archive. --- Rgds, Wilfried http://www.mestdagh.biz Friday, August 12, 2005, 19:04, brian wrote: You are right. I tried to run the ftp server demo as a normal

Re: [twsocket] (no subject)

2005-08-13 Thread Wilfried Mestdagh
Hello, socket709.connect; socket709.sendstr(#13); TWSocket is async. When you call connect; then it will execute in background and your program can do other things. Later when the connection is etablished OnSessionConnected is fired. If there is no winsock error (See Error argument),

Re: [twsocket] Twsocketserver

2005-08-15 Thread Wilfried Mestdagh
Hello Igor, My TCP communication isn't line oriented. Then how are is the data constructed ? If it has no END character, then there must be something else like: - a count byte/word/dword - fixed size - a byte with the type of packet - ... --- Rgds, Wilfried http://www.mestdagh.biz Monday,

Re: [twsocket] Twsocketserver

2005-08-15 Thread Wilfried Mestdagh
Hello Igor, Make a record with same structure in your receiver. Give it the same address as the pointer where you receive data to (with a ReadPtr and WritePtr). Set a flag if you have recieved = 8 bytes, then you know the length to receive. Allocate enough memory and reallocate if nececary, leve

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Wilfried Mestdagh
Hello Tom, I do not want multithreading. I assume that each connection is a thread, no? No it is not. ICS components are running in the thread they are created in, also the sockets. This is because non blocking is used. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or

Re: [twsocket] Httpserver and threads

2005-08-16 Thread Wilfried Mestdagh
Hello Tom, To try to debug you can make the document as short as possilbe (only some minimum of text and only 1 small image). Also you can try to make the connection trough SocketSpy, then you can see the data sent by the server and eventually make diagnositics out of it. If you dont get wise on

[twsocket] TWSocket DNSLookup

2005-08-17 Thread Wilfried Mestdagh
Hello Francois, Strange after all these years I did not check the AHostName before calling DNSLookup for the first time :) Anyway there is something I wonder. First exception is raised, then TriggerDnsLookupDone is called with the right argument, however because the exception it is never called,

Re: [twsocket] TWSocket DNSLookup

2005-08-17 Thread Wilfried Mestdagh
PROTECTED] http://www.overbyte.be - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: twsocket@elists.org Sent: Wednesday, August 17, 2005 11:57 AM Subject: [twsocket] TWSocket DNSLookup Hello Francois, Strange after all these years I did not check the AHostName

Re: [twsocket] R: HttpCli: Opinion wanted !

2005-08-17 Thread Wilfried Mestdagh
Hello Angus, This is a useless discussion. Only because you don't agree with your customers, and free helpers. For your convenience, you want to inconvience others. In fact it is useless, but please keep on reading! Part is that pro and not pro developpers are discussed but not circumstances.

Re: [twsocket] Hi, I've a question

2005-08-19 Thread Wilfried Mestdagh
? -- [EMAIL PROTECTED] http://www.overbyte.be - Original Message - From: Juan Pablo Franco [EMAIL PROTECTED] To: Wilfried Mestdagh [EMAIL PROTECTED] Cc: twsocket@elists.org Sent: Friday, August 19, 2005 3:44 PM Subject: Re: [twsocket] Hi, I've a question Hi Wilfried, The problem

Re: [twsocket] Transfer with UDP

2005-08-19 Thread Wilfried Mestdagh
Hello Juan, This can explain wy you loose data. UDP is fast but not realble. If you dont want to loose data then you have to use TCP. --- Rgds, Wilfried http://www.mestdagh.biz Friday, August 19, 2005, 16:11, Juan Pablo Franco wrote: Hi Guillaume, I am using Tsocket UDP because I need

  1   2   3   4   5   6   7   >