[JDEV] getting IP address of connection in a component

tom_waters at mac.com tom_waters at mac.com
Sat Feb 9 22:25:54 CST 2002


I would like to write a server component that lets a client query it's 
external IP address...

(this is in support of using jabber:iq:oob to do c2c stuff)

I was hoping that i could do something like:

<iq type="get" id="unique"><query xmlns='jabber:iq:ipaddr'/></iq>

and get back something like:

<iq type='result' id='unique' from='myself'><query 
xmlns='jabber:iq:ipaddr'><item addr='192.9.9.1'></query></iq>

I started with jud.c and started building the component, but I can't see 
how to get a handle on the socket or the ip address from way down in 
component land... last i could follow it was in mio _mio_accept(mio m) 
in mio.c

Is this possible?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 759 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20020209/49bb6eca/attachment-0002.bin>


More information about the JDev mailing list