Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
[gja] #1
Member since Jul 2009 · 19 posts
Group memberships: Members
Show profile · Link to this post
Subject: XmppCon_OnClose event
this is a nobe question:

can i call Onclose event from the main form to another form?

can u give me sample code on how to handle this..

tnx
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
to close a XMPP stream use

  1. _xmppCon.Close();

This is async. When the connection is closed then you get the OnClose event.

Alex
Avatar
[gja] #3
Member since Jul 2009 · 19 posts
Group memberships: Members
Show profile · Link to this post
hello alex,

thanks for your reply.

how about if i suddenly disconnected to the internet and i dont really intend to close the xmpp connection..is OnClose event get called?

tnx very mch!
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by [gja:
]
how about if i suddenly disconnected to the internet and i dont really intend to close the xmpp connection..is OnClose event get called?

yes
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: agsXMPP RSS