In the last few months I have been pretty busy with a few projects, but at least I managed to finish an earlier project "MailSlots and c#".
I have seen a  bunch of  messages regarding these so I decided to finish it.

The first version I posted was not so very good, it used pointers and thus had to be run as "unsafe", so I rewrote the whole thing and made sure it can be runned as managed code.

To use it is pretty simple, first create an instance of the MailSlotService.Server and feed the contructor your Ootbound file , Inbound file and then what scope to open the mailSlots in.

MailSlotService.Server _svc = new MailSlotService.Serve("MyApp\Out","MyApp\In",".");

The scope is defined like this. * is whole domain and . is local computer.

Then just connect: _svc.Connect();

So now you have created an In and outbound mailslot. To send data just call _svc.SendData(mydata_here) and the data will be sent.

To receive data you will have tosubscripe to the  OnMailSlotReceievedData event. All incoming data will be received through this event.

If you have any questions please message me and I'll try and help.The source will be attached at the end.

  /Tommy


MailSlotService.rar (23.70 kb)