5d8625 socket interfaces: sc_getpeername: initial integration.

Authored and Committed by midipix 8 years ago
    socket interfaces: sc_getpeername: initial integration.
    
    Integration of this function into the library has been delayed
    since the AFD ioctl operation, while succeeding, seems to only
    memset the caller's address buffer, and accordingly to never
    copy the remote socket address to it. Callers of sc_getpeername()
    should therefore first check the return value for success -- which
    may be used as indication that the socket is connected -- and then
    test the returned address buffer for validity.
    
        
file modified
+5 -0
file modified
+1 -0
file modified
+2 -0
file modified
+2 -0
file modified
+2 -0