Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Custom ScktSrvr implementations?

61 views
Skip to first unread message

Adrian Mercieca

unread,
Aug 20, 2007, 8:56:13 AM8/20/07
to
Hi,

Is it possible for one to write his own implementation of ScktSrvr?
Tks - Adrian.

Bob Swart

unread,
Aug 20, 2007, 9:16:26 AM8/20/07
to
Hi Adrian,

> Is it possible for one to write his own implementation of ScktSrvr?

The (Delphi) source code is included as ScktSrvr.dpr in the following
places (depending on your version of C++Builder):

C:\Program Files\CodeGear\RAD Studio\5.0\source\Win32\db
C:\Program Files\Borland\BDS\4.0\source\Win32\vcl
C:\Program Files\Borland\CBuilder6\source\vcl

It's also possible to write an interceptor DLL (but again I've only done
this with Delphi - see TDM #78 at http://www.drbob42.com/tdm/ to
download the free Delphi source code for the example).

> Tks - Adrian.

Groetjes,
Bob Swart

--
Bob Swart Training & Consultancy (eBob42.com) Forever Loyal to Delphi
CodeGear Technology Partner -- CodeGear RAD Studio Reseller (BeNeLux)
Blog: http://www.drbob42.com/blog - RSS: http://eBob42.com/weblog.xml

Adrian Mercieca

unread,
Aug 21, 2007, 1:55:03 AM8/21/07
to
Hi Bob,

Thanks for your answer.

Erm, what is an interceptor DLL?
Tks - Adrian.

"Bob Swart" <B...@BobSwart.com> wrote in message
news:46C9942A...@BobSwart.com...

Bob Swart

unread,
Aug 21, 2007, 3:47:51 AM8/21/07
to
Hi Adrian,

> Thanks for your answer.

You're welcome.

> Erm, what is an interceptor DLL?

Using the Socket Server in DataSnap, we can use socket interceptions:
peeking into what's happening between the client and the server when you
use the SocketConnection component. You can use the IDataIntercept
interface and the TPacketIntercept class to write your own DLL that must
be registered with the SocketServer application as well as the
TSocketConnection component and can be used to compress, encrypt, log or
do whatever with the data packets that you wish...

Adrian Mercieca

unread,
Aug 21, 2007, 5:23:57 AM8/21/07
to
Hi Bob,

> Using the Socket Server in DataSnap, we can use socket interceptions:
> peeking into what's happening between the client and the server when you
> use the SocketConnection component. You can use the IDataIntercept
> interface and the TPacketIntercept class to write your own DLL that must
> be registered with the SocketServer application as well as the
> TSocketConnection component and can be used to compress, encrypt, log or
> do whatever with the data packets that you wish...
>

That sounds *very* good. Thanks again.

Got another question (sorry)...
Has anyone thought of a broadcasting scheme of updates between servers
and clients? That would be most useful to propagate changes in a
live/push fashion I would think.

As background, I have loads of experiencing developing 3-tier apps using
the ACE/TAO Corba implementation with servers written in C++ running
on Linux and the gui written with C++ builder running on windows. This
is a proven framework and is very fast and very robust. Yet, it's not
RAD; DataSnap, though somewhat limited compared to
CORBA/C++/hand-wiring, offers RAD in proven paradigm. Yes, I have read
quite a few negative comments on the net about DataSnap. Admittedly, I
have no experience with it and so must rely on other people's
experiences with it.

What's your opinion about DataSnap's robustness, performance and
scalability? I'm very tempted to give it a try.


Thanks - Adrian.

0 new messages