Re: [twsocket] THttpConnection throttling problem with timer

2006-01-30 Thread Wilfried Mestdagh
(); } //--- and it calls a GetMessage() based loop which is good. Regards, SZ - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Sunday, January 29, 2006 6:59 PM Subject: Re

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: Wilfried Mestdagh [EMAIL PROTECTED

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
) { httpServerClient-affinityThread-messagePump(); } //--- and it calls a GetMessage() based loop which is good. Regards, SZ - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket

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

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

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, 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] 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 winsock

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

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 /body. At that point you can send your data. --- Rgds, Wilfried

Re: [twsocket] GpHTTPProxy component

2006-01-21 Thread Wilfried Mestdagh
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 twsocket@elists.org Sent: Saturday, January 21, 2006 3:12 PM Subject: Re

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

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,

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

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
://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 - From: Wilfried Mestdagh [EMAIL

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 talking

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't

Re: [twsocket] fast data sending

2006-01-18 Thread Wilfried Mestdagh
Technologies wrote: - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Wednesday, January 18, 2006 10:36 AM Subject: Re: [twsocket] fast data sending I dont mean TTimer, because that TTimers are limited recourse, also each Timer

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

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, 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 something

Re: [twsocket] fast data sending

2006-01-17 Thread Wilfried Mestdagh
Hello Dod, OK, I think I understand where I was wrong. So when I send data I simply do a .Send loop to each connected user and that all. Yep, and Send will return immediatly while the ocmponent does the job in background using coroporative multitasking. --- Rgds, Wilfried [TeamICS]

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

Re: [twsocket] Bandwidth control TFtpClient

2006-01-17 Thread Wilfried Mestdagh
- Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Tuesday, January 17, 2006 9:51 PM Subject: Re: [twsocket] Bandwidth control TFtpClient Hello Angus, My opinion too, but it seems a popular item :) If I write

[twsocket] events firing in strange sequence TWSocket

2006-01-16 Thread Wilfried Mestdagh
Hello, Have something very strange. At customar it is client program and they connect via VPN over internet to server. What I dont know is if they have obscure (software) firewalss who are messing up Winsock, so: 1/14/2006 11:25:58 PM OnSessionClosed with error: 10053 1/14/2006 11:25:58 PM

[twsocket] wierd sequence in event firing of TWSocket

2006-01-16 Thread Wilfried Mestdagh
Hello, Anyone ever seen this sequence ? 1/14/2006 11:25:58 PM OnDataSent 1/14/2006 11:25:58 PM OnSessionClosed with error: 10053 1/14/2006 11:25:58 PM Sending TCP packet 1/14/2006 11:25:58 PM OnSessionClosed with error: 10054 1/14/2006 11:25:58 PM OnDataSent 1/14/2006 11:26:03 PM DNSLookup for

Re: [twsocket] events firing in strange sequence TWSocket

2006-01-16 Thread Wilfried Mestdagh
Hello Arno, I think it is impossible that OnSessionClosed is fired twice, because it is always checked whether FCloseInvoked = FALSE. Isn't it possible that there are multiple instances? I just ahve posted same message again, sorry for that (need some coffee). No there is only 1 instance that

Re: [twsocket] wierd sequence in event firing of TWSocket

2006-01-16 Thread Wilfried Mestdagh
Hello Francois, Wierd sequence may be produced when you call the message pump from a socket event. No just found it. See my other mail. It is because my application was sending a packet from IN the OnSessionClose. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: 回覆: Re: 回覆: Re: [twsocket] ThttpCil S end bufsize problem

2006-01-12 Thread Wilfried Mestdagh
Hello Opqrst, HttpCli1-CtrlSocket-BufSize property, and I don't know how to set can more than 8193 even to 32768 or You can set this to any value (it's integer), but if you let it default you will probably have best performance. Because by this way I can Upload with my full upload connect

Re: [twsocket] how to send an Image ?

2006-01-10 Thread Wilfried Mestdagh
Hello Persian, I have an question , have I size limite on wsocket ? The only limit is if you wants to send packets larger than ethernet MTU witch is also the size of TWSocket's send buffer. As far as I know you only have to do it in the sending program. Note that if you sent packets larger

Re: [twsocket] IP to host

2006-01-10 Thread Wilfried Mestdagh
Hello Ann, Use ReverseDnsLookup method. OnDnsLookupDone will then fire with the hostname in DnsResult. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, January 10, 2006, 15:46, Ja wrote: Hi. How do i change IP to host (domain) ??

Re: [twsocket] how to send an Image ?

2006-01-10 Thread Wilfried Mestdagh
Hello Persian, Please tell how that you send the data ? You mention 30 KB, and you mention UDP. Do you send it in several packets, and do you number the packets ? Because UDP is not reliable you may have receive the packets in wrong order, or duplicate ones or missing ones. Using UDP you have to

Re: [twsocket] DNSQuery BUG...

2006-01-08 Thread Wilfried Mestdagh
Hello Ann, But I've set protocol to TCP... There is no proto property in DNSQuery component. --- 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

Re: [twsocket] TWSocket.Dup() ?

2006-01-07 Thread Wilfried Mestdagh
Hello Michael, You dont need to replicate it. Just leave the Socket where it is. In your second form you can have a socket that points to the other socket. Dont drop one on the second form, but just (I called the socket Cli): SecondForm.Cli := MainForm.Cli; and then you call all in the Cli of

Re: [twsocket] DNSQuery BUG...

2006-01-07 Thread Wilfried Mestdagh
Hello Ann, still doesn't start OnRequestDone event... Could be that it is waiting... To have a short timeout you can eventually set your own timeout timer. Please start next time a new subject instead of reply to another one and change the subject line. You do that every time and your message

Re: [twsocket] WSocket DNSLookup.

2006-01-05 Thread Wilfried Mestdagh
Hello Ja, Program check list of domains with several components at once... putting something in woudldnt do the job. Yes it does (not tested): procedure TForm1.LookupBtnClick(Sender: TObject); var Sock: TWSocket; n: integer; bgein n := 0; while n DomainList.Count do begin Sock :=

Re: [twsocket] WSocket DNSLookup.

2006-01-04 Thread Wilfried Mestdagh
://www.mestdagh.biz Tuesday, January 3, 2006, 22:18, Ja wrote: Wiadomosc Oryginalna Od: Wilfried Mestdagh [EMAIL PROTECTED] Do: ICS support mailing twsocket@elists.org Data: Tue, 3 Jan 2006 22:00:48 +0100 Temat: Re: [twsocket] WSocket DNSLookup. Hello Ja

Re: [twsocket] Dnslookup... WSocket...

2006-01-03 Thread Wilfried Mestdagh
Hello Ja, Is DNSLookup with WSocket async? yes. please dont reply to a thread if subject is different. Many modern email reader can sort on thread so many people will not see your question if they are not interested in the thread (in this case 'problem with overbyte website')

[twsocket] TCP server and UDP server

2006-01-02 Thread Wilfried Mestdagh
Hello Dorothea, I have no idea about the components you mention. But ICS comes with TWSocketServer component for TCP and you have TWSocket which you can use for UDP. There are various examples coming with the package. Please enter next time appropriate subject :) --- Rgds, Wilfried [TeamICS]

[twsocket] new year

2005-12-31 Thread Wilfried Mestdagh
Hello, I wants to wish TeamICS, Francois, and the whole community a happy new year, good business in 2006 and most of all interesting projects :) -- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket mailing list please goto

Re: [twsocket] ICS-V6 files and classes naming

2005-12-28 Thread Wilfried Mestdagh
Hello Francois, I wonder if I should also change all class names. For example rename TWSocket to TOverbyteIcsSocket or TIcsSocket. This way, ICS component would be clearly identified. True. This of course would require a lot of changes in existing applications, including in dfm. No the

Re: [twsocket] Christmess

2005-12-24 Thread Wilfried Mestdagh
Hello Steven, I am very sorry that I offended you. But in my country it is habitude to say some words to people in some seasons. I hope you understeand. I also think that the few bytes text will not overflow some HDD or cost on telephone lines :) What does rebuke means ? --- Rgds, Wilfried

Re: [twsocket] WSOCKET sending/receiving files

2005-12-10 Thread Wilfried Mestdagh
Hello Selahattin, sometimes the first record was send correctly but the other records were currupt.. Please try to specify exacly whats wrong: Can you tell when first record is send/received correct and when not ? Also if first record is not correct then what exacly is not correct ? Also

Re: [twsocket] Discard any bytes in the read buffer

2005-12-08 Thread Wilfried Mestdagh
Hello Ionut, Can you tell which component, which buffer etc ? If you mean TWSocket and also means the receive buffer then the answer is: just read them and do nothing with it. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday,

Re: [twsocket] Udp broadcast problem

2005-12-02 Thread Wilfried Mestdagh
Hello steffen, I checked this key and it seems to contain a very long list of applications. Study it I see it is all applications where I hade to check 'unblock' in windows XP firewall to let them work, so if it is a server then it is automaticly add. If it is a client of course not. But

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Wilfried Mestdagh
, SZ - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, December 01, 2005 12:18 PM Subject: Re: [twsocket] Problem with THttpCli Hello SZ, It gives no exception but throws ESocketError just after DNSLookup

Re: [twsocket] Problem with THttpCli

2005-12-01 Thread Wilfried Mestdagh
and OnHeaderData events to read packet-by-packet. Is this possible? If yes how? Regards, SubZ - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Thursday, December 01, 2005 12:18 PM Subject: Re: [twsocket] Problem with THttpCli

Re: [twsocket] TWsocket/TWsocketServer sending/receiving Files

2005-11-17 Thread Wilfried Mestdagh
Hello Sela, - Are you taken into account that nRead also can be 0 or -1 ? - You create a TStream in every OnDataAvailable. I think you need the TStream to put the file in right ? Then only create it one time. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html

Re: [twsocket] WSocket sometimes stops to receive data

2005-11-11 Thread Wilfried Mestdagh
Hello Geppy, Yes, I already tried a simple client/server socket connection cutting almost all code not involved in communication, but the problem is the same. Can you mail me this one. Probably (as always) nothing on television, so I might as well look into it :) ps.: unless there is per

Re: [twsocket] Strange behavior or not?

2005-11-09 Thread Wilfried Mestdagh
Hello Larini, I'm getting unstable times, from 70 ms to 3 seconds. This can happen. It is depending the traffic on the network. If very heavy on a large network it _can_ take a while. while gWait do begin application.ProcessMessages; sleep(1); end; This is not needed, you only waste CPU

Re: [twsocket] Hi, my darling :)

2005-11-05 Thread Wilfried Mestdagh
Hello DZ-Jay, I will then ignore it too and not answer the spam... but still we dont know what WTF means ! --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Saturday, November 5, 2005, 20:35, DZ-Jay wrote: So, let me get this straight, this

Re: [twsocket] Hi, my darling :)

2005-11-05 Thread Wilfried Mestdagh
Hello Arno, Nice, I second that (always learning :). me too :) --- 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.elists.org/mailman/listinfo/twsocket

Re: [twsocket] Design problem: function result and getAsync

2005-11-03 Thread Wilfried Mestdagh
Hello Lutz, Just write as always but you have a typical code that need to be executed in a separate object. So let the object behave as a normal ojbect. Later it is also very easy to use the thing in other applications. And you can use the normal async methods. unit uJob type TJobResult =

Re: [twsocket] transmission stress test

2005-11-01 Thread Wilfried Mestdagh
Hello David, I suggest to first see if the sender or the receiver fails. you can easy do that if you hang SocketSpy (user made) between them. Line 4117: Received -1 bytes, Remaining 3123 bytes Line 4118: WARNING! Transfer went wrong! Error 0 No nothing went nececary wrong. Ignore 0 and -1,

Re: [twsocket] SocketSpy Re-Reply

2005-11-01 Thread Wilfried Mestdagh
Hello, Sorry, you need a typecast: Client := TClient(WSocketServer.Client[n]); --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Tuesday, November 1, 2005, 11:09, ICSNewbie2005 wrote: Hi Mr. Wilfried M., Yes below is code I am talking

Re: [twsocket] Send one big or a lot of small strings

2005-11-01 Thread Wilfried Mestdagh
Hello Larini, for winsock it will end up probably the same, but in (2) you are 80 times re-allocating memory and probably copying bytes several times. if you really dont can create the send buffer at once you can do this: for a := 0 to 80 do Socket.PutStringInSendBuffer(MyString);

Re: [twsocket] transmission stress test

2005-11-01 Thread Wilfried Mestdagh
Hello David, So I ignored the zero und -1 returned by the Receive(), and it worked :) Great ! I'm glad it works for you :) But the TempSize in my code was never changed. it was set as to a constant value en the constructor. Ok no problem then. But if your buffer has a constant size, then

Re: [twsocket] Send one big or a lot of small strings

2005-11-01 Thread Wilfried Mestdagh
Hello Arnaldo, Yes that is another option, but the 1 second delay he had has nothing to do with it. TCP_NODELAY disable the Nagle algoritm. If my RAM serve me well Nagle will wait at maximum 100 milliseconds for transmit to see if something else is coming. And it will do this delay only if there

Re: [twsocket] [ICS] mmorpg capacity question

2005-11-01 Thread Wilfried Mestdagh
Hello Jack, There is no limitation. The difference is that the server versions will hadle more efficient this kind of huge IO. The only limitation is the amount of non-paged memory pool (the part that not be swapped to disk). On Intel86 systems this pool can grow to maximum 1/8 of phisical RAM.

Re: [twsocket] SocketSpy (User Made) Question...

2005-10-31 Thread Wilfried Mestdagh
Hello brock, I'm not sure I understeand what you try to do but: declared separately in the unit. When i tried to remove the RemoteSocket declaration from type TClient = class(TWSocketClient) snip and make it a global variable when sending local and remote data at the same You cannot.

Re: [twsocket] OK to Receiving 2GB ?

2005-10-30 Thread Wilfried Mestdagh
that a packet can be? I certainly don't want to malloc 100KB for a TCP packet... Thanks! David Wilfried Mestdagh wrote: Hello David, Hi! I'm new to ICS! Welcome to the group :) A-B: msg hello B-A: msg yo! how's it going? Yes that's the way to go. Design a user made proto

Re: [twsocket] OK to Receiving 2GB ?

2005-10-30 Thread Wilfried Mestdagh
possible? What is the maximum size that a packet can be? I certainly don't want to malloc 100KB for a TCP packet... Thanks! David Wilfried Mestdagh wrote: Hello David, Hi! I'm new to ICS! Welcome to the group :) A-B: msg

Re: [twsocket] OK to Receiving 2GB ?

2005-10-30 Thread Wilfried Mestdagh
, it's something on a lower layer encapsulated by winsock. --- Arno Garrels [TeamICS] Thanks! David Wilfried Mestdagh wrote: Hello David, How do I know the maximum size possible? at receiving side, specially depending on the speed of your own program you mostly

Re: [twsocket] OK to Receiving 2GB ?

2005-10-29 Thread Wilfried Mestdagh
Hello David, Hi! I'm new to ICS! Welcome to the group :) A-B: msg hello B-A: msg yo! how's it going? Yes that's the way to go. Design a user made proto for what you intend to do. If A is larger than the default buffer size (256 chars) then the A (sender) will warn B in advance You can

[twsocket] mail format

2005-10-27 Thread Wilfried Mestdagh
Hello, Never worried about this, but now I have to decode some mail formatted like this: -=A0=A0=A0=A0=A0=A0=A0=A0=A0 here some text =20 Is there some RFC describing how to decode this ? -- Rgds, Wilfried http://www.mestdagh.biz -- To unsubscribe or change your settings for TWSocket

Re: [twsocket] Sending a mix of text and records through TWSocket

2005-10-27 Thread Wilfried Mestdagh
Hello Geppy, FillChar(Data, SizeOf(TData), 0); Sorry for that. I have habitude to get rid of compiler warnings, even in a short demo where in this case it was not needed :( I'm glad it works for you now :) 1 additional note. You can also receive direct in your record. This save an additional

Re: [twsocket] Sending a mix of text and records through TWSocket

2005-10-26 Thread Wilfried Mestdagh
Hello Geppy, As Kirk and Arno mentioned show us how you receive the data. maybe one remark at the moment: wsocket.LineMode := True; WSocket.SendStr(EditCommand.Text + #13#10); // the command is 'DATA ' // r fields filled with some data pr := @r; wsocket.LineMode := False;

Re: [twsocket] Does THttpCli timeout?

2005-10-26 Thread Wilfried Mestdagh
Hello Jack, real quick answer :) correct ! Winsock will timeout after a while, but this is depending on many factors and can take a long time. For automated aplications use your own timeout. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz

Re: [twsocket] Does THttpCli timeout?

2005-10-26 Thread Wilfried Mestdagh
Hello Jack, I wonder why would winsock even time out in this case? Isn't it legitimate to have a socket connected and doing nothing? Yes of course. As always I anser to fast without carefully reading the request :( If yoiu connect and do nothing noone will timeout of course, unless the server

Re: [twsocket] Using HTTPCli in threads

2005-10-25 Thread Wilfried Mestdagh
Hello Nick, things at once - do I have to drop 4 HttpCli components on the form or can I create them at run time? If you drop themon a form then they are created and so will operate in main thread context. and you can't use 1 HttpCli to download two things at once No but you can use 4

Re: [twsocket] Using HTTPCli in threads

2005-10-25 Thread Wilfried Mestdagh
Hello Nick, if you execute a component in thread context taht need a message pump (like TWSocket) then you have to pump messages. TWSocket has this on board, so that's the proposed method. The message pump (you can write your own of course) I proposed will break his loop if a WM_QUIT message

Re: [twsocket] finding a local domain

2005-10-21 Thread Wilfried Mestdagh
Component Suite (ICS) http://www.overbyte.be - Original Message - From: Wilfried Mestdagh [EMAIL PROTECTED] To: ICS support mailing twsocket@elists.org Sent: Saturday, October 15, 2005 5:00 PM Subject: Re: [twsocket] finding a local domain Hello Francois, The problem is an MX

Re: [twsocket] Socket - streams

2005-10-19 Thread Wilfried Mestdagh
Hello Werner, If you data has a terminating character then you can use lineMode. Then OnDataAvailable will only fire when thes character(s) are received and you have all your data at ones. If not it will arrive in many chunck, or datapackets can even be concatenatied. Thats nature of TCP. Now,

Re: [twsocket] Socket - TimeOut

2005-10-19 Thread Wilfried Mestdagh
using a separate timer to check this. Is there an other way to do this, so far I've red that after the connect, onDataAvailable will fired direct, but is this when also when no data comes in? Thanks Werner - Oorspronkelijk bericht - Van: Wilfried Mestdagh [EMAIL PROTECTED] Aan

Re: [twsocket] AN: Google Translation Interface

2005-10-19 Thread Wilfried Mestdagh
Hello David, Looks very nice :) Works fine in XP, but gives AV's in NT4. Did not tryed on other OS. --- Rgds, Wilfried [TeamICS] http://www.overbyte.be/eng/overbyte/teamics.html http://www.mestdagh.biz Wednesday, October 19, 2005, 19:06, David A. G. wrote: Hello all I made a beautiful

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,

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

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

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

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

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

<    1   2   3   4   5   6   >