Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Looking for a communication framework for delphi [closed]

I am looking for a communication framework for delphi, we know there are so many communication frameworks for other languages , wcf, ecf and so forth, but i have nerver found the one for delphi till now , anybody who knows about it can give me an ider?

There are some requirements i need ,as follows:

  • Building an application(server or client) without caring how to do communications with each other between two endpoints.

    Imagine that we use mailbox for exchanging messages,it seems that the communication is transparent.

  • Supports communication protocol extending.

    We often need to exchange the messages between 2 devices, but the communication protocol is not a public or general one, so we need to extend the framework,to implement a communication protocol for receiving or sending a message completely.

  • Supports asynchronous and synchronous communication

  • Supports transmission protocol extending.

    The transmission protocol can implemented by winsocket, pipes, com, windows message, mailslot and so forth.

In client application, we can write code snips like follows:

var
  server: TDelphiCommunicationServer;
  session : ICommunicationSession;
  request, response: IMessage;
begin
  session := server.CreateSession('IP', Port);
  request := TLoginRequest.Create;
  session.SynSendMessage(request);
  session.WaitForMessage(response, INFINITE);
  .......
end;

In above code snips , TLoginRequest has implemented the message interface.

like image 395
Ryan Avatar asked May 25 '10 14:05

Ryan


3 Answers

Maybe RemObjects SDK is something you are looking for. It is a WCF like abstraction for a communication framework in which you can vary things like the message format, type of channels, etc. It comes ready with different channels like winsockets, pipes and windows messages.

like image 157
Lars Truijens Avatar answered Nov 08 '22 20:11

Lars Truijens


Take a look at Indy, which comes with Delphi. It's a mature communications framework that gets used in a lot of apps.

like image 22
Mason Wheeler Avatar answered Nov 08 '22 18:11

Mason Wheeler


To write custom TCP IP client and server components for use in our applications, we are using the Internet Component Suite by Francois Piette, and the Real Thin Client SDK (RTC SDK) on various projects. Others use Indy to develop custom TCP/IP protocol client/server components.

To build an API that can then be "remoted" easily, you can use DCOM (not recommended!) or one of the "remoting toolkits" like the RemObjects SDK (recommended!).

like image 36
Warren P Avatar answered Nov 08 '22 19:11

Warren P