ApplicationMessageCenter library (ApplicationMessageCenter.dll v.1.0.0.0).
ApplicationMessageCenter library makes possible that 2 or more application to comunicate with each other. It is a 2 in 1 solution, client and server.
Actions:
ApplicationMessageCenter.Client.Connect
ApplicationMessageCenter.Client.Disconnect
ApplicationMessageCenter.Client.AddEntry
ApplicationMessageCenter.Client.RemoveEntry
ApplicationMessageCenter.Client.ExistsEntry
ApplicationMessageCenter.Client.SendMessage
ApplicationMessageCenter.Client.ReceiveMessage
ApplicationMessageCenter.Client.IsClientChannelReg istered
ApplicationMessageCenter.Client.GetError
ApplicationMessageCenter.Server.Start
ApplicationMessageCenter.Server.Stop
ApplicationMessageCenter.Server.IsServerChannelReg istered
ApplicationMessageCenter.Server.GetError
Download:
ApplicationMessageCenter.v.1.0.0.0
Contents:
ApplicationMessageCenter.xml //Actions. Drop this to: C:\Program Files\AutoPlay Media Studio 5.0 Professional\Data\Actions.
ApplicationMessageCenter.Blank.Project.apt //Template. Drop this to: C:\Program Files\AutoPlay Media Studio 5.0 Professional\Templates.
Client1.apz //Demo. A demo project to show the ApplicationMessageCenter.dll usage.
Client2.apz //Demo. A demo project to show the ApplicationMessageCenter.dll usage.
Server.apz //Demo. A demo project to show the ApplicationMessageCenter.dll usage.
Start the server and both clients to see what it does. It is a simple project where 2 client can exchange messages with each other. When you start the server some firewalls can/will ask you for permission. Grant it if you want to see what it does, otherwise not.
Client applications can exchange messages not only from the same computer but also from lan and wan. Clients and server can be in different computer, cities, countries etc. 2 clients and a server can be in 3 different computers.
3 protocols are supported:
1-Http
2-Tcp
3-Ipc (only when the clients are in the same computer).
Server can operate in three protocols in the same time. Client only one at a time. Thus clients can connect at server at any channel assuming that server is listening for incomming calls at all channels.
It is important that the dll stays at the root dir (where the exe is).
How to use it:
How you like it. But as a rule follow this patterns:
Channel: You can choose from the 3 channels Http, Tcp, Ipc.
Host: Computername for lan. Ip address for wan.
Required. This is the very first actions a client must call.
AppId: Any unique string value.
Optional. AddEntry is optional. It is not needded to send but to receive yes. It is a kind of message box that will be created at server where messages will be stored untill you recive them.
After you are successfully connected you can send messages.
After you have connected and created the entry (AddEntry) you can receive (or send) messages.
Messages are not defined. It is up to you to define your own messages.
Applications can exchange not only messages but also files (small files though). But right now we keep it simple and exchange only messages
.Net 2.0 required.
With Kind Regards
sside
ApplicationMessageCenter library makes possible that 2 or more application to comunicate with each other. It is a 2 in 1 solution, client and server.
Actions:
ApplicationMessageCenter.Client.Connect
ApplicationMessageCenter.Client.Disconnect
ApplicationMessageCenter.Client.AddEntry
ApplicationMessageCenter.Client.RemoveEntry
ApplicationMessageCenter.Client.ExistsEntry
ApplicationMessageCenter.Client.SendMessage
ApplicationMessageCenter.Client.ReceiveMessage
ApplicationMessageCenter.Client.IsClientChannelReg istered
ApplicationMessageCenter.Client.GetError
ApplicationMessageCenter.Server.Start
ApplicationMessageCenter.Server.Stop
ApplicationMessageCenter.Server.IsServerChannelReg istered
ApplicationMessageCenter.Server.GetError
Download:
ApplicationMessageCenter.v.1.0.0.0
Contents:
ApplicationMessageCenter.xml //Actions. Drop this to: C:\Program Files\AutoPlay Media Studio 5.0 Professional\Data\Actions.
ApplicationMessageCenter.Blank.Project.apt //Template. Drop this to: C:\Program Files\AutoPlay Media Studio 5.0 Professional\Templates.
Client1.apz //Demo. A demo project to show the ApplicationMessageCenter.dll usage.
Client2.apz //Demo. A demo project to show the ApplicationMessageCenter.dll usage.
Server.apz //Demo. A demo project to show the ApplicationMessageCenter.dll usage.
Start the server and both clients to see what it does. It is a simple project where 2 client can exchange messages with each other. When you start the server some firewalls can/will ask you for permission. Grant it if you want to see what it does, otherwise not.
Client applications can exchange messages not only from the same computer but also from lan and wan. Clients and server can be in different computer, cities, countries etc. 2 clients and a server can be in 3 different computers.
3 protocols are supported:
1-Http
2-Tcp
3-Ipc (only when the clients are in the same computer).
Server can operate in three protocols in the same time. Client only one at a time. Thus clients can connect at server at any channel assuming that server is listening for incomming calls at all channels.
It is important that the dll stays at the root dir (where the exe is).
How to use it:
How you like it. But as a rule follow this patterns:
Code:
ApplicationMessageCenter.Client.Connect([I]Channel[/I], [I]Host[/I]);
Host: Computername for lan. Ip address for wan.
Required. This is the very first actions a client must call.
Code:
ApplicationMessageCenter.Client.AddEntry([I]AppId[/I]);
AppId: Any unique string value.
Optional. AddEntry is optional. It is not needded to send but to receive yes. It is a kind of message box that will be created at server where messages will be stored untill you recive them.
After you are successfully connected you can send messages.
Code:
ApplicationMessageCenter.Client.SendMessage(sender, receiver, messageText, messageData);
Code:
ApplicationMessageCenter.Client.ReceiveMessage(receiver);
Applications can exchange not only messages but also files (small files though). But right now we keep it simple and exchange only messages
.Net 2.0 required.
With Kind Regards
sside
Comment