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] 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[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[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 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[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] 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[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

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

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] 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[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 --

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[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, 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] 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] 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] 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] 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: [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] 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

[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] 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] 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 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] 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] 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

Re: [twsocket] Transfer with UDP

2005-08-19 Thread Wilfried Mestdagh
Hello Juan, If I use TCP, the time is over. I need transfer important data in little time. Ok. If it is not importand to loose data (you can ask server to transfer it later) because real time is more importand then you have to use UDP, but if speed is importand then read on. For the packets

Re: [twsocket] Transfer with UDP

2005-08-19 Thread Wilfried Mestdagh
Hello Juan, If I use TCP, the time is over. I need transfer important data in little time. As Guillaume and others already stated: the main problem with UDP is that you know you have sent, but you never know *what* has been received - unless you have established a heavy protocol which

Re: [twsocket] GetPeerName

2005-08-22 Thread Wilfried Mestdagh
Hello John, If you connect to a server, then the server accept the connection into a local port which is different from the listening port. This is how winsock works, because the Listening port stay listening. this cannot be different because if the same port should be used for data transfer

Re: [twsocket] Connect timeout on deleted object

2005-08-22 Thread Wilfried Mestdagh
Hello Jan, I think you better use the async methods then you never will have sutch problems. If you use sync then you have to take all that into account because the code is looping whilst waiting for a result. If you want to stay sync then call the Abort method, but I dont know if you should

Re: [twsocket] TWSocketClient inheritance problem

2005-08-23 Thread Wilfried Mestdagh
Hello Snake, You are typecasting the server as your clientclass instead of the client. It should be: procedure TFrmTest.ServClientConnect(Sender: TObject; Client: TWSocketClient; Error: Word); begin // TWSockClient(Sender).MyEvent := Test; // wrong TWSockClient(Client).MyEvent := Test; //

Re: [twsocket] Bandwidth control

2005-08-23 Thread Wilfried Mestdagh
Hello Dan, I've had a look at the smatters throttling code but I think it needs your socket code to be in a separate thread. Yes you right, the code from Davie is for use in a thread. --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing

Re: [twsocket] smtp / pop3 server demos?

2005-08-25 Thread Wilfried Mestdagh
Hello David, slap me if this question has been answered 100 times already :) No only 95 times so no problem :) BTW the program from Alex as per reply of Darin runs very fine. I never checked the code, but use it for lots of tests and developments :) --- Rgds, Wilfried http://www.mestdagh.biz

[twsocket] mail reply to display in message thread

2005-08-30 Thread Wilfried Mestdagh
Hello, If I want to reply on a mail and I want to have that the receiver of the reply has the possibility to display in same thread like many mail readers do, do I have to use the 'References' header or 'In-Reply-To' header ? It seems that both are sometime used, eg I see a thread here started

Re: [twsocket] mail reply to display in message thread

2005-08-30 Thread Wilfried Mestdagh
is that different mailers use different systems, so you should consider as many as you can. One last thing you must consider is for those mailers (very common!) who do not even include any reference to the original, except the subject Re: origina_subject. dZ. On Aug 30, 2005, at 04:23, Wilfried

Re: [twsocket] Client/Server

2005-09-06 Thread Wilfried Mestdagh
Hello David, Is that the correct logic for it all? yes it is correct. I have tried a number of different ways of doing this, but each way doesn't seem to have reliable communications. Should be very reliable. If you can provide some more detail of what the problem is, then we all very glad

Re: [twsocket] Client/Server

2005-09-07 Thread Wilfried Mestdagh
time every time. However, after the first transaction, the client cannot connect again event though I finished the transaction with -Close. Any ideas? Source code attached (Borland C++ Builder). Dave Wilfried Mestdagh wrote: Hello David, You have a class TTcpSrvClient, whitch

Re: [twsocket] Client/Server

2005-09-07 Thread Wilfried Mestdagh
Hello David, Glad it works for you now :) and not by me. I wasn't expecting this data Welcome to TcpSrv so You can switch this off if you want. Just before you call Listen you do: Srv.Banner := ''; isn't sent until the buffers were full. TWSocketOptions( ) wsoTcpNoDelay; Not needed.

Re: [twsocket] WSocketServer stops listening

2005-09-08 Thread Wilfried Mestdagh
Hello Shekar, - The CPU time is that a normal load, or is this only after the server has stopped listening ? - Interesting info also is the amount / used non paged memory - and amount / used pool - do you have code in server's OnBGException ? --- Rgds, Wilfried http://www.mestdagh.biz Friday,

Re: [twsocket] WSocketServer stops listening

2005-09-10 Thread Wilfried Mestdagh
Hello Shekar, I suggest following for a 24/7 server: 1. in OnBGException set CanClose to True 2. in OnSessionClosed post a message to custom message handler that set it to Listen again. And meanwile log all and also the winsock error if any. This way your server will stay running while it

[twsocket] Winsock error 10035

2005-09-11 Thread Wilfried Mestdagh
Hello Igor, The error gets mostly when I obtain three or more asking in one frame. I dont understeand this. Do you mean you call more than 1 time Receive method in OnDataAvailable ? Because you only should call it one time. When I didn't write a procedure for OnError Dont use OnError.

[twsocket] has packet reach other end

2005-09-12 Thread Wilfried Mestdagh
Hello, I'm writing an MDOT server. For who is concerned: MDOT is the protocol used for tunneling MPAK packets over TCP connections. MPAK is the format used for MOBITEX wich is a packet switched radio network. MDOT has some usefull things on board to send/receive binairy data over TCP and

Re: [twsocket] Thttpserver and databases

2005-09-13 Thread Wilfried Mestdagh
Hello Adrian, Yes, ICS does not create threads. If you have bloking code then you can eventually execute it in a thread, but for the communication it is not needed. --- Rgds, Wilfried http://www.mestdagh.biz Tuesday, September 13, 2005, 00:57, adrian spinetta wrote: are you sure? if 10 user

Re: [twsocket] has packet reach other end

2005-09-13 Thread Wilfried Mestdagh
Hello Francois, Why not sending ACK yourself above TCP ? Because I did not designed MDOT protocol :( --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our website at

Re: [twsocket] has packet reach other end

2005-09-13 Thread Wilfried Mestdagh
Hello Angus, You could use the raw socket monitoring component I wrote to watch the TCP packets for the response, to avoid using a timeout. http://www.magsys.co.uk/download/software/monsock1.zip Good idea. Will try it out ! --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or

Re: [twsocket] Receive function in ClientDataAvailable procedure

2005-09-13 Thread Wilfried Mestdagh
Hello Igor, Receive can return 0 or -1. If so then just exit the event and dont care. Yes it is normally closed or error, but in this case the 10035 TWSocket take care of it. You never have to call LastError because TWSocket have Error code in each event. --- Rgds, Wilfried

Re: [twsocket] abnormal winsock behaviour by firewall

2005-09-16 Thread Wilfried Mestdagh
Hello Francois, 10053 is connection aborted. I guess Norton is listening on all ports and abort the connections he is configured to deny. Yes I think so too. I think this is totally wrong, most other firewalls give a 10060 (timeout) whitch is also wrong, but at least is gives a TCP connection

Re: [twsocket] [tsyncsmtpcli] Problem sending email to Exchange 2000server

2005-09-19 Thread Wilfried Mestdagh
Hello Francois, Verify that OE use SMTP and don't use IMAP4. Is IMAP also used to send emails ? I have the problem that M$ Echange complains it will not relay, but sending with outlook to same destination it works. So probably this is the reason... --- Rgds, Wilfried http://www.mestdagh.biz

Re: [twsocket] Connecting and sending in a thread

2005-09-21 Thread Wilfried Mestdagh
all the code in the thread execute part? Thanks in advance, Jacco On 9/21/05, Wilfried Mestdagh [EMAIL PROTECTED] wrote: Hello Jacco, There is no difference if you wants to do in a thread if all your code is thread safe, and you need a message pump in the thread. The most easy way

Re: [twsocket] gphttpproxy trouble

2005-09-24 Thread Wilfried Mestdagh
Hello Sebastien, Clicking right or left in the browser has nothing to do with the proxy. But I dont understeand, if you click right on an URL then there is no navigation, but a popup menu ? --- Rgds, Wilfried http://www.mestdagh.biz Thursday, September 22, 2005, 23:36, Sebastien MAHIEUX wrote:

Re: [twsocket] Webinterface and PHP

2005-09-27 Thread Wilfried Mestdagh
Hello Igor, I dont think there are variables moved to private section because that should break backward compatibility. --- Rgds, Wilfried http://www.mestdagh.biz Monday, September 26, 2005, 19:49, Igor Pokorny wrote: Hello friends, Back to the history... I tried today to get running Sven

[twsocket] SMTP server adding personalized mail headers

2005-09-28 Thread Wilfried Mestdagh
Hello, I need to add in a special SMTP server some headers in special mails, so that users can easy classify them with rules in their email reader. I see that many programs add headers and all are prceided with X-, like: X-Text-Classification: normal X-POPFile-Link:

Re: [twsocket] BgException when a tcp client application is started by another application

2005-09-28 Thread Wilfried Mestdagh
Hello Jack, What is the offending line of code ? I looked into the source and there is no exception starting with 'bgException' ! --- Rgds, Wilfried http://www.mestdagh.biz Wednesday, September 28, 2005, 20:20, Jack wrote: Hello Francois and all, I have a TCP client application that runs

Re: [twsocket] BgException when a tcp client application is started by another application

2005-09-29 Thread Wilfried Mestdagh
Hello Jack, That's actually a print out of my BgException event handler :) I understeand it now that I read all mails on this topic :) --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Wilfried Mestdagh
Hello Robert, If I understeand whell it seems that you receive a particular packet double ? This is impossible with TCP. First of all check if it is the sender or the receiver that fails. You can easy check this with SocketSpy where you can log the traffic between them. If it is receiver, I

Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Wilfried Mestdagh
Hello Robert, I have, not only in the server, in the client also. And the logs show that the client has sent the right message (the 98th), the server has got it as the 98th message, but it contains exactly the 97th. So there is something wrong between the point where the client log it and

Re: [twsocket] OnClientDataAvailable

2005-10-03 Thread Wilfried Mestdagh
Hello Robert, But i suspect maybe there is something 'wrong' in server's message pump (i am using ics messageloop). It is very basic, cannot go mutch wrong with it. I hope it is only called in the Execute method of your thread ? Other question: what is exactly 'IsClient' do? Sorry I dont

Re: [twsocket] [tsyncsmtpcli] Problem sending email to Exchange2000server

2005-10-05 Thread Wilfried Mestdagh
Hello, 1. using a sniffer (look for Ethereal) check for what is sent through Or SocketSpy (user made). No need. I think this is mainly due to some protocol requirements, not Or some email header. Some companies are 100% relying on their spam filters, specially the ones who have spam filters

Re: [twsocket] Sync THttpConnection derivative

2005-10-06 Thread Wilfried Mestdagh
Hello sz, SocketSpy will show the sent/received data. You can see it in hex-ascii if click right and choose debug or something. As Francois say, messageBox will stop at first null, but you can use WriteLn, it does not. --- Rgds, Wilfried http://www.mestdagh.biz Thursday, October 6, 2005, 10:01,

Re: [twsocket] Socket server overhead

2005-10-08 Thread Wilfried Mestdagh
Hello Werner, The component itself will take about 2 KB of memory. A listening socket (is a socket in rest) will take about 4 KB (nonpaged) memory. A data socket (if a client is connected) around 8 KB (nonpaged) because it is sending and receiving. As for other recources like CPU load etc, it is

Re: [twsocket] Socket one to one

2005-10-08 Thread Wilfried Mestdagh
Hello Werner, You always need a listening socket to accept inbound connections. When a client connect you accept/dup the client to a data socket. Server stay listening. You can use a normal TWSocket as server and handle the creation of data sockets, but then you are just re-inventing

[twsocket] finding a local domain

2005-10-15 Thread Wilfried Mestdagh
Hello, Is it possible to find a local domain without a DNS server ? I give example: I have written (with ICS of course :) an SMTP server but difference is that there are not email clients connect to but mobile GSM. The SMS mail server runs on a particular machine, and that IP address is added

Re: [twsocket] finding a local domain

2005-10-15 Thread Wilfried Mestdagh
Hello Francois, The problem is an MX query problem, isn't it ? Yes. Until now I delivered the server only to customars who have their own DNS server. I tell them to add an entry in the hosts file of the machine of their mail server with the IP address of my server pointing to the new domain,

Re: [twsocket] finding a local domain

2005-10-15 Thread Wilfried Mestdagh
Hello SubZ, If you need to use domains in a LAN with no DNS server, you can try dynamic DNS providers such as dyndns.org or no-ip.com. These can point a virtual IP to a dynamic DNS. But not MX record to a private IP :( Their forms just does not accept it. --- Rgds, Wilfried

Re: [twsocket] finding a local domain

2005-10-15 Thread Wilfried Mestdagh
Hello Arno, Forget it, it is shareware. Could not find a freeware one also. I really thought this would be a sooo simple to solve problem :( --- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] finding a local domain

2005-10-15 Thread Wilfried Mestdagh
Hello Francois, I would say: install a DNS server. There are free one. Thanks, I think this is only solution. Thanks to all for advice . --- Rgds, Wilfried [TeamICS] http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] Finding the DNS server for a domain.

2005-10-16 Thread Wilfried Mestdagh
Hello Eric, Check out DnsQuery component, I think that's what you need. --- Rgds, Wilfried [TeamICS] http://www.mestdagh.biz Saturday, October 15, 2005, 23:47, Eric Montréal wrote: Hi, I'm trying to find the DNS server associated with a domain name. One way to go would be to do a full

Re: [twsocket] Does ICS support ...

2005-10-18 Thread Wilfried Mestdagh
Hello Jack, I was just editing this faq whitch could answer one of your questions: [Author] Marco van de Voort [Email] [EMAIL PROTECTED] [Answer] Since there seem to be quite some confusion about the extend of fixes FPC needs, I made a ICS/FPC status page, that explains the needed changes,

  1   2   3   4   5   6   >