Re: What does it mean ?????

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

 



Rex Dieter wrote:

Franck Y wrote:

I don t know waht does this thing mean.....like the "get_peer_addr "

Can you excplain me thk you

Oct 20 13:41:09 constellation smbd[3927]: [2005/10/20 13:41:09, 0]
lib/util_sock.c:get_peer_addr(1150)
Oct 20 13:41:09 constellation smbd[3927]:   getpeername failed. Error
was Transport endpoint is not connected


getpeername failed => failed DNS/hostname lookup.

-- Rex


No, that would be gethostbyaddr().  getpeername() is a system call
that looks for the address of the other side (the remove side) of an
association or socket pair.

Of course, if you're using connectionless sockets (i.e. datagrams),
then it won't return an endpoint...  For that, you'd have to use
recvfrom() and note the endpoint from individual requests.

-Philip


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux