NAT traversal implementation: modify nat_detect.c?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks Benny!

Now I've a new question for you.
I've modified the nat_detect.c in order to retrieve in the client_main.c the mapped addresses and the local socket for which I gained the detection.
I've tested these data with Wireshark, and they matches. 
Now I'd like to send from the same local socket (used in the detection) a simple UDP datagram to a simple UDP server.
And that's the problem: I bind to the same port, but I get a new port, and so I can't receive the data back from the server, because they arrives to the port saw by the server, but different from the port where I'm waiting for...
What about the use of the SO_REUSEADDR for the local socket in nat_detect.c? The problem is that I don't know how to perform the call to your API pj_sock_setoptions()...

After that, I wish to initiate a ICE connectivity check, for the same socket for which I done the detection. How can I relay the information from  one point to another? That is: how can I say to ICE transport that I've detected (local IP_a:port_a)(mapped IP_A:port_A)? How can I forward these info to the peer, in order to start the check?

I hope you will answer soon.
Bye.


      Posta, news, sport, oroscopo: tutto in una sola pagina. 
Crea l'home page che piace a te!
www.yahoo.it/latuapagina



[Index of Archives]     [Asterisk Users]     [Asterisk App Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [Linux API]
  Powered by Linux