1
votes

Does anybody knows the difference between TSocketConnection and TDCOMConnection?? In a application that receives heavy serial requests, at the same time, which one is better to use?

1

1 Answers

3
votes

The difference is in the transport which carries the remote call parameters back and forth between the client and the appserver. TDCOMConnection uses Microsoft's DCOM to dispatch remote calls, TSocketConnection uses a simple binary protocol over a TCP/IP socket connection (see SConnect unit) to a running scktsrvr.exe process. Both TDCOMConnection and TSocketConnection require Automation-compatible COM interfaces.

As to which one is better: probably TSocketConnection but I'm not sure. DCOM used to be considered difficult to configure and manage/secure, I don't know if that's changed in the meantime. Personally I've only used TSocketConnection, TWebConnection and TLocalConnection, I never needed TDCOMConnection.