[JDEV] (no subject)

Yunli Li yunli at devcomblue.com
Tue Jul 10 19:58:41 CDT 2001


Hello,everyfriend:
	I am a new member ob using the JabberCOM.
	I am failed on connecting with the Jabber server.

	Here is my code:

	IJabberSession m_jabSession1;//local

	CString m_UserName ;
	CString m_Password ;
	CString m_Resource ;
	CString m_Server ;

	m_UserName = _T("yunli");
	m_Password = _T("yunli");
	m_Resource.Empty() ;
	m_Server = _T("jabber.com");

	m_jabSession1.SetUsername( m_UserName );
	m_jabSession1.SetPassword( m_Password );
	m_jabSession1.SetResource( m_Resource );
	m_jabSession1.SetServer  ( m_Server   );

	m_jabSession1.SetAvailable(TRUE);
	m_jabSession1.SetStatus(_T("Testing!"));
	m_jabSession1.SetPort(5222);

	CString msg;
	msg = _T("Hi, how are you?");
	m_jabSession1.SendMessage((LPDISPATCH)(&msg));

#define New_User		TRUE
#define Registed_User	FALSE
	m_jabSession = m_jabSession1 ;
	m_jabSession.DoConnect( Registed_User , 1 );//jatDigest ) ;





	Could you tell me how I can telecommunicate with the jabber server with
JabberCOM
Or where can I get some samples of JabberCOM.

	Thank you.

yunli




More information about the JDev mailing list