Questions tagged [agsxmpp]

An SDK for the Jabber / XMPP protocol written in C#.

agsXMPP is an SDK / library for the eXtensibleMessaging and Presence Protocol (XMPP) protocol written in C#. The SDK is released as open source under a dual license.

The SDK could be used for XMPP client, server and component development.

Here is a small sample how easy you can login to an XMPP server and send a simple chat-message to another user:

XmppClientConnection xmpp = new XmppClientConnection("jabber.org");
xmpp.Open("myusername", "mysecret");
xmpp.OnLogin += delegate(object o) {
    xmpp.Send(new Message("test@jabber.org", MessageType.chat, "Hello, how are you?")); 
};

Features:

  • cross platform, designed for:
    • Microsoft .NET Framework
    • Microsoft .NET Compact Framework (Pocket PC, Smartphone, Windows CE)
    • Mono
    • Portable .NET
    • compatible with .NET 1.1 and .NET 2.0
  • Multi OS (Windows, Linux, Mac…)
  • for client, server and web applications
  • fast and lightweight
  • uses its own simple and fast XML-Parser
  • open source
71 questions
5
votes
1 answer

XMPP Libraries for Metro Apps in WinRT

Could you please list down some XMPP Libraries which supports for Metro Apps in WinRT? Thanks!
Sugath
  • 263
  • 2
  • 7
3
votes
4 answers

Why can't I connect to Google Talk in agsXMPP?

I'm trying to get started using agsXMPP, but I'm having some problems. I'm trying to run this code: using System; using agsXMPP; namespace TestAgs { class MainClass { public static void Main (string[] args) { …
Matthew
  • 25,652
  • 26
  • 93
  • 158
3
votes
1 answer

How to get all friends irrelevant of presence status

I'm trying to create a friend's list which is populated when the user logs in but am having issues with loading the offline friends. The OnPresence event only seems to be firing for online friends. Am I doing something wrong or is this by design?…
Jurgen Camilleri
  • 3,309
  • 18
  • 42
2
votes
2 answers

.NET Winform Program Terminating without any valid reason on End Sub

I'm using agsXMPP in my .NET project (WinForms) I have the following Code block, this is executed whenever a message is received from any client. Now whenever a message is received, this block executes and the program terminates.. :( I've no idea as…
Kumar Ravi
  • 462
  • 2
  • 17
2
votes
0 answers

agsXMPP OnLogin event not firing in windows application

I am trying to make an agsXMPP jabber chat client in window app. but the OnLogin event is not firing at all. In console app its working fine. but windows or web its not working. Here is the code: JID_Sender = jid.Text; password =…
2
votes
1 answer

OnLogin evnet not firing on agsXMPP

I have an issue with agsXMPP onLogin event. when I was working on local machine everything worked just fine and when I established a connection with a server it seems that the onLogin() event is not fired up, although the connection state after I…
2
votes
0 answers

GCM CCS Receive delivery receipt

I'm trying to write a 3rd party server .NET application for sending notifications to Android devices using GCM's CCS as outlined here. And I want to use Receive delivery receipts feature. I created a simple console app using agsXMPP library. My…
Natalya
  • 308
  • 3
  • 9
2
votes
1 answer

GCM Cloud Connection Server doesn't respond to SASL on XMPP

Using agsXMPP to connect to Google Cloud Messaging XMPP API for the purpose of sending notification to Android devices. The connection is established OK, but on SASL start, after sending the PLAIN auth element, the server stops responding, and…
simbolo
  • 6,543
  • 4
  • 46
  • 86
2
votes
1 answer

agsXMPP OnMessage not containing message body

I am subscribing to the OnMessage event and it gets called twice when a user sends a message; once when he/she starts typing, in which case the Message objects contents are as follows: Body = null Chatstate = composing Error = null Headers =…
Jurgen Camilleri
  • 3,309
  • 18
  • 42
1
vote
2 answers

How to retrieve Someone's Avatar/Photo with agsXmpp

this is what I have so far: void xmppConnection_OnReadXml(object sender, string xml) { if (xml.Contains(XmlTags.PhotoOpen)) { int startIndex = xml.IndexOf(XmlTags.PhotoOpen) + XmlTags.PhotoOpen.Length; int…
Jordy Langen
  • 3,511
  • 4
  • 21
  • 32
1
vote
1 answer

How to create jabber account using agsXMPP c#?

How to create Jabber account using agsXMPP library in c# .net.? I have tried to chat between two Jabber users, but for both of them, the JID was already created on Jabber website registration. But, I want to create JID registration using agsXMPP…
K T
  • 11
  • 3
1
vote
1 answer

Show RosterList on user Interface when rosterlist gets fully populate on OnRosterItem event

Currently, am working on client server application using agxsmpp framework, I want to display the roster list on user interface when roster list gets fully populated on OnRosterItem event . agsxmpp has async communication, do not wait until function…
bilal
  • 550
  • 7
  • 24
1
vote
1 answer

Auth Error connecting to google cloud messaging cloud connection servers

I am new to gcm upstream messaging. I am trying to connect to the cloud connection servers via xmpp (using c# agsxmpp library). However, I am getting a not authorized error message from the server and the connection is closed immediately even though…
yohannes
  • 3,828
  • 3
  • 28
  • 53
1
vote
1 answer

XmppClientConnection OnLogin event never firing after OnIq

Here's my setup: Jid jid = new Jid ( "*******@jabber.ua" ); XmppClientConnection connection = new XmppClientConnection ( jid.Server ); connection.Open ( jid.User, "**********" ); After calling connection.Open, everything is working nicely, i.e.…
1
vote
1 answer

Unable to get roster list from XMPP server

I have created two accounts on https://www.blah.im for testing purposes. I use agsXMPP client library for communicating with server. The connection is authenticated right and member is logged in. But roster is not displayed. This is my code …
Binoy
  • 141
  • 14
1
2 3 4 5