Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-04 Thread Lars
Lars wrote: > it seems > > http://docwiki.embarcadero.com/VCL/XE2/en/Classes.TStringStream.WriteString > > in delphi the WriteString() function accepts a strongly typed string. > > This might be a compatibility problem in delphi mode since in fpc, > writestring accepts a untyped pointer if i am not

Re: [fpc-pascal] TStringStream.DataString returns garbage?

2012-02-04 Thread Lars
it seems http://docwiki.embarcadero.com/VCL/XE2/en/Classes.TStringStream.WriteString in delphi the WriteString() function accepts a strongly typed string. This might be a compatibility problem in delphi mode since in fpc, writestring accepts a untyped pointer if i am not mistaken. Different beh

Re: [fpc-pascal] lNet and TCP packet length

2012-02-04 Thread Malcolm Poole
On 04/02/12 14:14, Bernd wrote: 2012/2/4 Bernd: You need a robust way to determine how long your protocol message is, at which byte exactly it ends and the next message begins. The simplest way would probably be if you prepend all your messages with a length field and a checksum field to be sen

[fpc-pascal] fpc 2.6 32 & 64bit difference

2012-02-04 Thread konf
Hello guys, What has been changed in 2.6 in enumeration size. I have many enumerated where it is enough to use single byte. 32bit lnx compiler uses single byte but 64 bit lnx double byte in memory. Thanks for all answers. TRoland; ___ fpc-pascal mailli

RE : RE : [fpc-pascal] Synapse: SSH client+cryptlib+private key

2012-02-04 Thread Ludo Brands
> > Hello, > > I suspect more or less the same can be used to set up a HTTPS > connection > with a known certificate ? > > Maybe this is something to be added to the WIKI ? > > Michael. > You mean client authentication (the HTTPS server has a list of public keys of the authorised users)? Wh

Re: [fpc-pascal] lNet and TCP packet length

2012-02-04 Thread Bernd
2012/2/4 Bernd : > You need a robust way to determine how long your > protocol message is, at which byte exactly it ends and the next > message begins. The simplest way would probably be if you prepend all your messages with a length field and a checksum field to be sent as the very first bytes of

Re: [fpc-pascal] lNet and TCP packet length

2012-02-04 Thread Bernd
2012/2/1 Malcolm Poole : > Before I set out to implement the procedures to do this myself, can someone > reassure me that this needs to be done and that I am not re-inventing the > wheel? The TCP protocol will transparently split the data into the packets of needed size without user intervention,

Re: RE : [fpc-pascal] Synapse: SSH client+cryptlib+private key

2012-02-04 Thread Michael Van Canneyt
Hello, I suspect more or less the same can be used to set up a HTTPS connection with a known certificate ? Maybe this is something to be added to the WIKI ? Michael. On Sat, 4 Feb 2012, Ludo Brands wrote: Hi all, I've been fiddling with connecting to an SSH server. Thanks to Ludo Brand

[fpc-pascal] Re: RE : Synapse: SSH client+cryptlib+private key

2012-02-04 Thread Reinier Olislagers
On 4-2-2012 7:34, Ludo Brands wrote: >> I've been fiddling with connecting to an SSH server. >> >> Thanks to Ludo Brands' help I can use username/password with >> Synapse (stable)+cryptlib. I'm fiddling and trying to get >> private key authentication to work. >> Thanks, >> Reinier >> > After som