raghurthepro / jcoap

Automatically exported from code.google.com/p/jcoap
0 stars 0 forks source link

retrieve ip address of response's sender #1

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

i would like to have a simple way to retrieve the ip address of a response's 
sender. Maybe i'm wrong, but i used jcoap that way :

I have a class that use a ChannelManager : I have some URI, and i get a 
ClientChannel for each URI.

I register my class as a Listener for each Channel, and send messages.

My problem is to retreive IP sender of received response.

Is it better to implement a method to get IP address ? or is it better to have 
many listener, one for each channel (in that case, of cause, i know the 
address)  ?

I think it's still an issue, because i want some day use Jcoap on multicast 
address to discover devices.. So i will send to a multicast address, and want 
to get ip address of response's sender).

Thanks for your answer.

Original issue reported on code.google.com by sylvain....@gmail.com on 12 May 2011 at 9:44