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 > EAc

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

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

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

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 Ac

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] UDPServer receive and IP

2006-02-20 Thread Dan
- Original Message - From: "George" <[EMAIL PROTECTED]> To: 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:= UDPServer.ReceiveFrom(@Buffer, SizeOf(

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

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

2006-02-20 Thread Arno Garrels
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. Arno > Any clue someone ? > > -- > > Guillaume

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

2006-02-20 Thread Arno Garrels
Pawel (WP) wrote: > Hi. > I use ICS component - HtmlSmtpClient to send html formatted email. I have > got 2 requests. > 1. I would like to know, how can I show progress of sending email to > multiply users, for example on delphi component - TProgressBar. It's not easily possible, because attachm

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] [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 an email - progress/html formatted email

2006-02-20 Thread Darin McGee
Your second question concerns filtering by Spam Assassin - Way off topic here - Have your recipients accept or hard code your sending address in their white list. Darin -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pawel (WP) Sent: Monday, February 20

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 eve

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

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

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

2006-02-20 Thread WP
Hi. I use ICS component - HtmlSmtpClient to send html formatted email. I have got 2 requests. 1. I would like to know, how can I show progress of sending email to multiply users, for example on delphi component - TProgressBar. Like in Outlook Express is...If it possible please give me some code..

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: > >- DataAvaila

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

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

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

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

2006-02-20 Thread Jack
Hello Francois, Thanks for the reply. I'll try that. So when I resume, instead of setting the option, I can still use the Resume() function to resume notification? -- Best regards, Jack Sunday, February 19, 2006, 2:20:54 AM, you wrote: >> I find that calling pause in OnSessionConnected() is ef

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

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

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

2006-02-20 Thread 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 Surabaya
I want to ask about line mode again, Is it right that in Line mode: - DataAvailable will only be called when the data received contains delimiter. - DataAvailable could be called containing more than one line at a time, we must splitting each line manually - If I send 1222byte

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 website

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 > reente

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

2006-02-20 Thread Dod
Hello Surabaya, Why do you want to refresh it manually, doing a label.caption change within OnDataAvailable should work. But you could do all Socketing things in a thread and then use a timer (every second for example) in your main form that get info in synchronized way, you may also

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

2006-02-20 Thread Arno Garrels
Surabaya wrote: > so I can't call application.processmessages at all? Don't process messages directly or indirectly from within event handlers, because the event may be reentered, this isn't an ICS issue but Windows design. Same applies to a OnClick event as well. > what can I call if I need m

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
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? > > Fo

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

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

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

2006-02-20 Thread Arno Garrels
Surabaya wrote: > What do you mean about this statement? > "calling the message pump from an event handler" > > what is message pump? For instance Application.ProcessMessages or anything else that processes messages. Arno > > thanks > > On 2/20/06, Francois Piette <[EMAIL PROTECTED]> wrote:

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

2006-02-20 Thread Surabaya
What do you mean about this statement? "calling the message pump from an event handler" what is message pump? thanks On 2/20/06, Francois Piette <[EMAIL PROTECTED]> wrote: > > > Yes, right now I am facing the same problem as Dan's > > > > I'm receiving more than one line in a call of DataAvailab

Re: [twsocket] UDPServer receive and IP

2006-02-20 Thread Arno Garrels
Hello Francois, I wanted to test this with the UdpLstn1 demo. I assigned local IP to property Addr, there's no error on the call to Listen, and GetXAddr returns correct local IP. But OnDataAvailable doesn't trigger anymore, if I set Addr back to '0.0.0.0' OnDataAvailable triggers again. Arno Fr

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

2006-02-20 Thread Dod
Hello Francois, And of course do not forget to escape the escape sequence itself if it is already present in your original data. You could also do a two-pass sending, first one send a position table of delimiters located in your data, other send binary data with delimiter replaced with

Re: [twsocket] UDPServer receive and IP

2006-02-20 Thread Francois Piette
> PS: Sorry for posting 2nd time, but I never got any response in my email :S I replyed to your last email telling to test with GetXAddr which returns local IP address to which a socket has been bound. I'm not sure it will not return 0.0.0.0. If it does, then you have to use a separate TWSocket

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

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 i