Re: [Synalist] SSL Send and received bytes

2008-11-27 Thread Lukas Gebauer
Hi, I'm using synapse with TSSLOpenSSL plugin. I need to count the bytes sent and received thought the socket, but also counting the overhead of SSL. I'm counting the bytes of the TTCPBlockSocket class but these bytes don't count the bytes added by SSL. Is there any way to count the sent and

[Synalist] How to build complex MIME body of HTTP post?

2008-11-27 Thread Petr Fejfar
I'd like to use the suite TMimeMess, TMimePart to build a complext MIME body of HTTP post, but it seems to be bind with email (RFCx822) headers tightly... Should I build an email message, reuse its body and build HTTP headers? What is a recommended/easiest way to build such HTTP body? Thx,

Re: [Synalist] SynaSer

2008-11-27 Thread Richard
Am Mittwoch, den 26.11.2008, 17:21 +0200 schrieb Werner Hauptfleisch: Thant link is pretty much what you need to know in order to work with Synaser. There is also some good examples available on the synapse website: http://ararat.cz/synapse/doku.php/download#synaser_serial_library Sorry,

Re: [Synalist] SynaSer

2008-11-27 Thread Werner Hauptfleisch
True, guess that is the case if you are supporting a free product. Here is some information on the synapse components as well (to so much synaser): http://www.dubaron.com/synapsecookbook/ Also, when searching the forums you should also find some information. The documentation on the procedures

Re: [Synalist] SynaSer

2008-11-27 Thread Jon
Take a look at: http://synapse.ararat.cz/doc/help/synaser.TBlockSerial.html There's documentation for the Recv* methods. The help file can be downloaded at http://synapse.ararat.cz/files/synahelp.zip - This

Re: [Synalist] SynaSer

2008-11-27 Thread Richard
Based on you question and the information you have gathered thus far, anything else you need to know, maybe I can help? Thank you for this offer! I don't know if this mailing list accepts attachments so I have copied the program serialtest.pas at the end of this mail. I have connected my

Re: [Synalist] smtp sending and ssl (gmail)

2008-11-27 Thread Diego
I got the same problemstartTLS returns true, but next smtp command returns false. I solve this issue deleting startTLS and simply writing: smtp.autoTLS := true; BEFORE the login command. With this, works great. With this, adding uses ssl_openss.pas in the unit and coping the two openssl

Re: [Synalist] SynaSer

2008-11-27 Thread Jon
ser.config(9600, 8, 'N', 1, False, False); From the documentation: procedure Config(baud, bits: integer; parity: char; stop: integer; softflow, hardflow: boolean); virtual; Reconfigure communication parameters on the fly. You must be connected to port before! parameters: baud

Re: [Synalist] SynaSer

2008-11-27 Thread Richard
Look at stopbits, should be SB1, SB1andHalf or SB2. So use: ser.config(9600, 8, 'N', SB1, False, False); I did. No positive results. I used the value 1 instead of the constant SB1 with the value 1, which should be equivalent.

Re: [Synalist] SynaSer

2008-11-27 Thread Jon
Look at stopbits, should be SB1, SB1andHalf or SB2. So use: ser.config(9600, 8, 'N', SB1, False, False); I did. No positive results. I used the value 1 instead of the constant SB1 with the value 1, which should be equivalent. Wrong: {:stopbit value for 1 stopbit} SB1 =

Re: [Synalist] SynaSer

2008-11-27 Thread Markku Uttula
Richard wrote: Look at stopbits, should be SB1, SB1andHalf or SB2. So use: ser.config(9600, 8, 'N', SB1, False, False); I did. No positive results. I used the value 1 instead of the constant SB1 with the value 1, which should be equivalent. What ever gave you the impression that SB1