Hi *,

I haven't seen any response from this list to my e-mail below and 
thus I wonder whether it has been received at all (Waldo responded to 
it, but he was in Cc: of my original e-mail and thus he replied 
directly rather than via the list).

In particular, I wonder whether my contribution is considered for 
merging into Synapse SVN repository, or whether you see some issues 
with that. Sorry if it's just due to lack of time - I don't want to 
push it in any way so just tell me to wait more. Also, if my 
contribution is supposed to be provided through some other channel, 
just let me know too.

Thanks

Tomas


------- Forwarded message follows -------
From:                   Tomas Hajny <xhaj...@hajny.biz>
To:                     Ararat Synapse <synalist-public@lists.sourceforge.net>
Subject:                OS/2 support for Synapse working (Was: Re: SSLConnect 
returning -1 but ErrGetError giving 0)
Copies to:              wkitt...@windstream.net
Send reply to:          xhaj...@hajny.biz
Date sent:              Mon, 31 Dec 2012 02:36:33 +0100

Hi *,

Thanks again to Ludo who helped me to address the previously 
discussed issue with SSL connections. Attached you'll find the result 
- my modifications (on top of Synapse trunk) allow compiling Synapse 
(or at least major parts ;-) ) for OS/2 and use the compiled units 
for both plain and SSL connections (using OpenSSL libraries compiled 
with EMX - in that case emx.dll is needed too, but only if OpenSSL 
support is included/compiled in the resulting binary). As of now, it 
requires unit Sockets (OS/2 implementation) from FPC trunk, but I'll 
probably merge the changes to the FPC fixes branch too.

In order to deal with the timezone offset (and DST), I've implemented 
parsing of the TZ environment variable and its interpretation with 
regard to current date (unit TZUtil - currently included too) because 
OS/2 provides no direct API for retrieving current DST status. I've 
tried to support multiple standards existing for this variable. This 
unit should be completely platform independent and thus potentially 
usable for other platforms which may use / need this environment 
variable (this applies at least to DOS / GO32v2). I'll discuss 
addition of this unit or its content to FPC RTL (either just for OS/2 
or for multiple platforms; possibly merged into SysUtils or 
elsewhere) with the FPC core team; depending on the result, 
tzutil.pas may not be necessary as part of Synapse in the future, but 
it should be safe to include it for now at least.

One thing which I have _not_ tested (since I don't know how) is the 
iconv support. It compiles correctly and proper name for the iconv 
library is provided, but that's it for the moment.

One final note (probably mainly for Lukas) - as mentioned previously, 
I've used the Winsock support (sswin32.inc) as basis for the OS/2 
support. While doing the modifications, I've tried to keep it as 
close to the original as possible. I mention this because you could 
decide to change the reference to ssos2ws1.inc in synsock.pas to 
sswin32.inc and copy my ssos2ws1.inc over sswin32.inc instead of 
adding it as a new include file and it should work perfectly for both 
OS/2 and Windows platforms. This may be a better option for keeping 
the platform include files in sync.

Happy New Year! :-)

Tomas


Attachments:
  Y:\temp\syn_os2.zip
------- End of forwarded message -------


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122412
_______________________________________________
synalist-public mailing list
synalist-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/synalist-public

Reply via email to