Patrze, patrze a tu badzio porozsypywal nastepujace haczki:
Quote:
I have application on PC working on Sybase SQLAnywhere 8 and aplication
on PPC working on ultralite. PPC's application connect with PC using
ActiveSync 4.1 and exchange data with Mobilink. (...) If I connect Windows
Mobile 5 (Dell Axim X51) then synchronization via mobilink failed. It
means - PPC connects with PC using ActiveSync (I can copy file etc) but
when I try synchronize from my application, I got error -85
(Communication Error).
I have try with Sybase ASA 9.0.2.3249, Ultralite 9.0.2.2451, Mobilink
|
9.0.3.3249. And I have some success but still not enough

When I give a ip of Mobilink Server then everything is ok. But my
application must be able to connect with any/unlimited Mobilink Server.
I have read than patch EBF# 3228 can fixed it... I have this patch but
it still doesn't work.
I tried following codes:
ULInitSynchInfo( &_synchInfo );
_synchInfo.stream = ULSocketStream();
SetSynchUserName( synch_user );
SetSynchVersion( synch_version );
SetSynchStreamParms(_T("host=169.254.2.2"));
where function SetSynchXXX sets adequate property.
When I set parameter "host=169.254.2.2" then everything is ok. If I
doesn't set it - null streamparams - then I get SQLCODE -85
(SQLE_COMMUNICATIONS_ERROR ). If I set f.e. "port=2439;stream=tcpip"
then I have error -1002 (SQLE_UNRECOGNIZED_OPTION). If I set only
"port=2439" then I have again error -85. If I change stream from tcpip
to http then again error -1002. When I set only "stream=tcpip" or
"stream=http" - again error -85.
When I get error SQLCODE = -85 then stream_error_code = 65
(STREAM_ERROR_SOCKET_CONNECT) and system_error_code = 10061
(WSAECONNREFUSED - Connection refused. Typically, this means that the
MobiLink server is not running or is not listening on the specified port)
If I change
_synchInfo.stream = ULSocketStream();
for
_synchInfo.stream = ULActiveSyncStream();
then independent of stream_params the synchronization always failed with
SQLCODE=-85 and and stream_error_code = 75
(STREAM_ERROR_ACTSYNC_NOT_INSTALLED)
So - any idea how can I connect with Mobilink server when I don't know
MobilinkServer's adress? (in PocketPC2002 and Sybase ASA 8.0.2 I could
connect with mobilink server with unknown adress).
--
Michal "badzio" Kijewski
JID: badzio(at)chrome(dot)pl
GG: 296884, ICQ: 76259763
Skype: badzio