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.
- 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?
- 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