[Xorp-hackers] A question about sock ID
Nam Ninh
namnninh at yahoo.com
Fri Sep 30 11:19:47 PDT 2011
Hi;
I am new user to XORP.
I would like to ask about socket kernel.
I try to access to socket kernel through XORP XRL SOCK4.XRL.
When I issue a call XrlSocket4V0p1Client::send_udp_open, Xorp returns a socket ID but it is in the string format.
My question is how I can get the actual socket ID from the kernel??
I dig in XORP code, I found a code:
IoTcpUdpSocket::udp_open (string &error)
{
.............
_sock_fd = comm_open_udp (family(), COMM_SOCK_NONBLOCKING)
..............
}
where XorpFd _sock_fd.
in libcomm. The routinr comm_open_udp returns an interger. It is a socket Id (or Fd)
Thanks you.
Nam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ICSI.Berkeley.EDU/pipermail/xorp-hackers/attachments/20110930/2e53d6e8/attachment.html
More information about the Xorp-hackers
mailing list