Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
mrbelk #1
Member since Feb 2017 · 23 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to tell the connection is "opening"
How can we tell the connection is opening, but not completely opened (or failed?)

I am having trouble determining when to "bail out" on a connection.Open and trying again. Can I hook into "OnStreamStart" to tell the system that we're communicating with the server, but maybe not yet fully connected? Is there a better method?

Thanks,
-MrB
Avatar
Alex #2
Member since Feb 2003 · 4327 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes, you can use OnStreanStart, and OnError.
OnError should raise for example when the server is unavailable and no socket connection could be established.

When you need more events then let us know :-)

Alex
Avatar
mrbelk #3
Member since Feb 2017 · 23 posts
Group memberships: Members
Show profile · Link to this post
Perfect. Thanks. Do I have to explicitly enable stream management in order to handle the OnStreamStart event?

-MrB
Avatar
mrbelk #4
Member since Feb 2017 · 23 posts
Group memberships: Members
Show profile · Link to this post
NVM. I answered my own question.
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: MatriX RSS