ejabberd - Comments for "Accessing StateData with User/Server/Resource" https://www.ejabberd.im/node/1669 en Thanks for your input, i was https://www.ejabberd.im/node/1669#comment-39700 <p>Thanks for your input, i was able to find what i needed through support on the process-one forum.</p> <p>Link: <noindex><a href="http://www.process-one.net/en/forum/viewthread/79/" title="http://www.process-one.net/en/forum/viewthread/79/" rel="nofollow" >http://www.process-one.net/en/forum/viewthread/79/</a></noindex></p> <p>Jeffrey R. | dS</p> Wed, 08 Aug 2007 13:44:45 +0000 dS_Jeffrey comment 39700 at https://www.ejabberd.im If I'm understanding you https://www.ejabberd.im/node/1669#comment-34508 <p>If I'm understanding you correctly, this is almost the same thing that I needed while hacking <noindex><a href="/mod_pep" rel="nofollow" >my PEP patch</a></noindex>. Thus I added <code>ejabberd_sm:get_session_pid/3</code>, which returns the PID of the <code>ejabberd_c2s</code> process, and then <code>ejabberd_c2s:get_subscribed_and_online/1</code>, which returns the data that I need. These functions may or may not eventually find their way into ejabberd proper in this shape, but I hope the code might serve as inspiration…</p> Sun, 29 Jul 2007 00:22:31 +0000 legoscia comment 34508 at https://www.ejabberd.im What StateData do you refer https://www.ejabberd.im/node/1669#comment-33727 <p>What StateData do you refer to exactly? I guess you are interested in the one implemented in ejabberd_c2s.erl:</p> <pre>-record(state, {socket, sockmod, socket_monitor, streamid, sasl_state, access, shaper, zlib = false, tls = false, tls_required = false, tls_enabled = false, tls_options = [], authenticated = false, jid, user = "", server = ?MYNAME, resource = "", sid, pres_t = ?SETS:new(), pres_f = ?SETS:new(), pres_a = ?SETS:new(), pres_i = ?SETS:new(), pres_last, pres_pri, pres_timestamp, pres_invis = false, privacy_list = none, ip, lang}).</pre><p> What information are you interested in, IP address, method of connection...?</p> Sat, 28 Jul 2007 09:13:25 +0000 mfoss comment 33727 at https://www.ejabberd.im