How to get remote IP ?

rohit hiwale rohit.hiwale at gmail.com
Sun Aug 30 13:13:45 EDT 2009


As per the API for libpurple there exists a field
"remote_ip<http://developer.pidgin.im/doxygen/dev/html/struct__PurpleXfer.html#9ff2616ee6dc832c10037efad11d762a>"
in struct "PurpleXfer<http://developer.pidgin.im/doxygen/dev/html/struct__PurpleXfer.html>
"
http://developer.pidgin.im/doxygen/dev/html/struct__PurpleXfer.html#9ff2616ee6dc832c10037efad11d762a

But when I try to print it in
file-recv-start<http://developer.pidgin.im/doxygen/dev/html/xfer-signals.html#file-recv-start>callback,
I keep on getting null.
..
..
static void
ft_recv_start_cb(PurpleXfer *xfer, gpointer data) {
      printf("\n\n\nfilename :: %s\n\n", xfer-> filename );          //
printed correctly
      printf("\n\n\nremote_ip :: %s\n\n", xfer-> remote_ip );     // prints
null
}
..
..Am I doing something wrong (completely different code required, missing
something?) or is this just not possible ?
Is there any other way of identifying IP of persion at other end using
libpurple
-- 
Rohit R.Hiwale
3rd yr UG student
Department of Computer Science & Engineering
Indian Institute of Technology , Kharagpur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://pidgin.im/pipermail/support/attachments/20090830/d63df7a5/attachment.html>


More information about the Support mailing list