Miranda NG Official Community Forum

Forum for English speaking Miranda NG users => Development => Topic started by: pmazas on 17 06 2015, 21:08:50

Title: Developing custom protocol
Post by: pmazas on 17 06 2015, 21:08:50
Hello. I'm thinking about developing a custom protocol, for messaging in a LAN. Now we're using a "home made" server, written in C# and the client has some bugs. I wish I could integrate with Miranda.  Does any one have a tutorial to develop a new protocol?
Thanks!
Title: Re: Developing custom protocol
Post by: AnrDaemon on 18 06 2015, 00:12:48
Install jabber server and use standard XMPP protocol.
Title: Re: Developing custom protocol
Post by: pmazas on 18 06 2015, 18:41:53
This should be a good alternative, but the home made protocol has some different features. For example, all the incoming users see the full user list. No one needs to add users to their contact list.
Nor is it necessary to sign up, when the user enters, he says the name and the group, no more login credentials are needed.
For all this is that I'm looking for information about protocol development, in order to use one program to connect to public networks, and the internal too.
Title: Re: Developing custom protocol
Post by: AnrDaemon on 18 06 2015, 20:40:28
/facepalm
Tells me how much you know about modern communication protocols overall and XMPP in particular.
Also, inevitable XKCD (http://xkcd.com/927/).
Title: Re: Developing custom protocol
Post by: Vulpix on 18 06 2015, 20:42:17
This should be a good alternative, but the home made protocol has some different features. For example, all the incoming users see the full user list. No one needs to add users to their contact list.
Nor is it necessary to sign up, when the user enters, he says the name and the group, no more login credentials are needed.
For all this is that I'm looking for information about protocol development, in order to use one program to connect to public networks, and the internal too.


Did you try the EmLan protocol?
Title: Re: Developing custom protocol
Post by: pmazas on 30 06 2015, 01:12:28
Did you try the EmLan protocol?
Yes, I've tried. Is a very good option for a LAN, but I need to connect users in many LANs.
In the current protocol, the user says name and server, nothing else. After that, gets all users and can talk to anyone.
For now, I will continue using the custom client too.
Thank you for your time.
Title: Re: Developing custom protocol
Post by: Robyer on 30 06 2015, 09:23:40
pmazas, hey, if you are familiar with developing in C/C++ (I'm not sure if developing C# plugins is easily suitable), best way is to get inspired by existing protocol plugin. For Miranda NG there are all plugins open sourced, so you can look at them in our svn repository (http://svn.miranda-ng.org/main/trunk/protocols/). There is no manual unfortunately.

Very simple protocol is MinecraftDynmap, which communicates over HTTP protocol (not over LAN), but uses group chats instead of single 1 to 1 conversations. Anyway, for basic understanding of Miranda protocol it might be helpful.

Otherwise you can get direct help and answers for your questions from other devs in our jabber conversation: miranda-ng-int@conference.jabber.ru (http://xmpp:miranda-ng-int@conference.jabber.ru?join)