MsgCommunicator: Delphi Instant Messaging (IM) SDK
for easy creation of custom messenger system
Please, read Connecting and Messaging chapter first to learn general information about connections and message exchange.
To allow direct connection, you must set TMsgClient.Active property to True.
You have no needs connecting every time you need to send a message. Moreover, if you connected Client1 to Client2 by calling ConnectDirectly, Client2 can communicate to Client1 using this opened connection without any previous action.
The working in peer-to-peer mode is specially made to be very easy: just call ConnectDirectly instead of Connect which is used to open connection with a server, then use SendMessage methods and OnReceiveTextMessage, OnReceiveBinaryMessage, OnReceiveStreamMessage event handlers as usual.
Use Peer-To-Peer Demo as an example of an application that works in peer-to-peer mode.
User details and users database
Working with contact list
Writing server application