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

2006-02-20 Thread Francois Piette
WSocket will always trigger exactly one OnDataAvailable per line received. Is this completely true. I'm sure in the past I've had a receive call return multiple lines, something like This is one line'#13#10'this is the next'#13#10'. And I had to split multiple lines, and process

[twsocket] UDPServer receive and IP

2006-02-20 Thread George
Hello, I have a UDPServer component and on DataAvailable SrcLen := SizeOf(Src); Len:= UDPServer.ReceiveFrom(@Buffer, SizeOf(Buffer), Src, SrcLen); ShowMessage(inet_ntoa(Src.sin_addr)); // i know the IP address of the remote pc but since my computer contains 5 ip addresses in the

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

2006-02-20 Thread Surabaya
so I can't call application.processmessages at all? what can I call if I need my user interface updated? for example I changed a Label's caption and need it refreshed when accepting data? On 2/20/06, Wilfried Mestdagh [EMAIL PROTECTED] wrote: Hello Arno, what is message pump? For

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

2006-02-20 Thread Francois Piette
so I can't call application.processmessages at all? Sure you can, but not from an event handler or you'll have problem reentering events. You have the same problem with a simple button: in the button OnClick, program a loop calling ProcessMessage during 30 seconds. You'll see that during this

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

2006-02-20 Thread Surabaya
Wow, my application really works much better after deleting all application processmessages on my code... On 2/20/06, Francois Piette [EMAIL PROTECTED] wrote: so I can't call application.processmessages at all? Sure you can, but not from an event handler or you'll have problem reentering

Re: [twsocket] UDPServer receive and IP

2006-02-20 Thread George
I tried with GetXAddr, but it returns 4 times the 0.0.0.0 Ok 4 seperates TWSockets are a temp solution, but I believe you can fix it, cant you? George -- To unsubscribe or change your settings for TWSocket mailing list please goto http://www.elists.org/mailman/listinfo/twsocket Visit our

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

2006-02-20 Thread Francois Piette
I want to ask about line mode again, You're welcome :-) Is it right that in Line mode: - DataAvailable will only be called when the data received contains delimiter. Right. - DataAvailable could be called containing more than one line at a time, we must splitting each line

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

2006-02-20 Thread Widita Nugraha
On 2/20/06, Wilfried Mestdagh [EMAIL PROTECTED] wrote: Hello Surabaya, - If I send 1222bytes 5 times consecutively (delimited by #13#10#10#13#11#11#13#10#10#13) I'm not sure if this has ever been tested by such long delimiter string. Wy such long delimiter ? Normally you need only

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

2006-02-20 Thread Widita Nugraha
OK, thanks for your support, I'll try to edit my codes I'll keep you informed about my results.. Regards, Widita On 2/20/06, Francois Piette [EMAIL PROTECTED] wrote: I want to ask about line mode again, You're welcome :-) Is it right that in Line mode: - DataAvailable will

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

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

Re: [twsocket] Sending an email - progress/html formatted email

2006-02-20 Thread Dod
Hello Paweł, I cannot answer you question but... what happends if you simply send your e-mail with outlook ? will it also be considered as spam ? If yes then this is because of anti-spam filter at receiver part that is set too high. SPAM rules/filters are more and more restrictives following

[twsocket] [HELP] Question...

2006-02-20 Thread Guillaume MAISON
hi all ICS gurus ;) i've installed latest ICS beta version from Overbyte website. i've changed nothing to my code and now, using a THttpCli, it triggers an error though before it wasn't. Here's what i'm doing : First i create a THttpCli and do the following assignments : FHttpLayer :=

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

2006-02-20 Thread Dod
Hello Wilfried, But you also could create a delimiter #00#00 and search if exists in you data, then try #00#01 ... then #00#02 and if you reach #FF#FF add a third delimiter #00#00#00, #00#00#01, #00#00#02 ... until you finally found a delimiter that do not exists. Of course this is not a really

[twsocket] SOAP and Attach file

2006-02-20 Thread Bruno Mannina
Hello All, i try to use HttpTst program to get information from a SOAP server (i modify it with the help of F. Piette, it's ok). When i try to get a single XML doc, no problem but i must also get a XML response with an attach file and that is the problem. I get no error, a xml information but i

Re: [twsocket] UDPServer receive and IP

2006-02-20 Thread Dan
- Original Message - From: George [EMAIL PROTECTED] To: twsocket@elists.org Sent: Monday, February 20, 2006 9:20 AM Subject: [twsocket] UDPServer receive and IP Hello, I have a UDPServer component and on DataAvailable SrcLen := SizeOf(Src); Len:=

Re: [twsocket] [HELP] Question...

2006-02-20 Thread Guillaume MAISON
Arno Garrels a écrit : Guillaume MAISON wrote: And, effectively, the NewValue is '', as i don't need it Whether to use or not to use Socks is specified via property SocksAuthentication, in your case socksNoAuthentication, property SocksLevel may not be empty. In that case, the

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

2006-02-20 Thread Widita Nugraha
Hello, somebody, help me... after changing my application to line mode (binary send using line mode, using 4 bytes of unique delimiter) my application keeps giving me Access Violation Message 0x00406645:write of addess 0x00030e4c' or 0x77d4cd7f: write of address 0x00030ffc or EAccesViolation

Re: [twsocket] [HELP] Question...

2006-02-20 Thread Arno Garrels
Guillaume MAISON wrote: Arno Garrels a écrit : Guillaume MAISON wrote: And, effectively, the NewValue is '', as i don't need it Whether to use or not to use Socks is specified via property SocksAuthentication, in your case socksNoAuthentication, property SocksLevel may not be empty.

[twsocket] [Error] Multiple declaration

2006-02-20 Thread kenforever
When I creat ThttpCli and TidHttp at the same time I have compilier Error, and how should I resolve it? [C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set' [C++ Error] winsock.h(54): E2344 Earlier declaration of 'fd_set' [C++ Error] winsock2.h(112): E2146 Need an identifier to

Re: [twsocket] [Error] Multiple declaration

2006-02-20 Thread Francois Piette
When I creat ThttpCli and TidHttp at the same time I have compilier Error, and how should I resolve it? [C++ Error] winsock2.h(109): E2238 Multiple declaration for 'fd_set' Use only THttpCli component :-) -- Contribute to the SSL Effort. Visit http://www.overbyte.be/eng/ssl.html --

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

2006-02-20 Thread Francois Piette
Hello, somebody, help me... after changing my application to line mode (binary send using line mode, using 4 bytes of unique delimiter) my application keeps giving me Access Violation Message 0x00406645:write of addess 0x00030e4c' or 0x77d4cd7f: write of address 0x00030ffc or