Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Creating a jabber server

68 views
Skip to first unread message

Jaques Burger

unread,
Nov 11, 2014, 6:53:13 AM11/11/14
to jabbe...@googlegroups.com
Hi there,

I've downloaded jabber-net to create our own server which will allow us to communicate internally. I'm totally new to this, but there is a couple of things I would like to know.

  1. Have anybody created a server app with jabber-net, and are you willing to share some of the code with me just to get a handle on it?
  2. I've created a console app in c#. In the Main method I've just added the following code
                var connect = new JabberService(5121, "JabberService", "Anypassword");
                  connect.NetworkHost = "0.0.0.0";
                    connect.Connect();
                      connect.OnConnect += connect_OnConnect;
                        while (1 == 1)
                          {
                                if (Console.KeyAvailable)
                                      if (Console.ReadKey(true).Key == ConsoleKey.Escape)
                                            break;
                                      Thread.Sleep(1);
                                    }
                         
                            3.  When I connect with a telnet session to it, the OnConnect Event is fired, so I know that it is actually listening and that I will be able to connect to it.
                            4.  What I need to figure out now is how to handle the incoming connections, How do I handle them and "connect" them to another client.

                        I hope that I can find some answers, as there is not a lot out there.

                        Thanks

                        David M. Wilson

                        unread,
                        Nov 11, 2014, 8:11:55 PM11/11/14
                        to jabbe...@googlegroups.com
                        Jaques,

                        jabber-net is not intended for creating an XMPP (Jabber) server*, so you may want to look at other libraries if developing your own server is what you want to do. If you just want to set up and use a server within your organization, there are many excellent choices for server software, and a lot of them are free and open source. This list may not be up-to-date, but it's a good place to start: http://xmpp.org/xmpp-software/servers/

                        * - In the XMPP lexicon, service and server mean different things. The JabberService class can be used to develop a service, but it certainly isn't a server and, as far as I know, cannot be used to handle client connections.

                        Respectfully,

                        David M. Wilson


                        --
                        You received this message because you are subscribed to the Google Groups "jabber-net" group.
                        To unsubscribe from this group and stop receiving emails from it, send an email to jabber-net+...@googlegroups.com.
                        To post to this group, send email to jabbe...@googlegroups.com.
                        Visit this group at http://groups.google.com/group/jabber-net.
                        For more options, visit https://groups.google.com/d/optout.

                        Reply all
                        Reply to author
                        Forward
                        0 new messages