Ticket #272: fdshare.diff

File fdshare.diff, 735 bytes (added by jinmei, 10 years ago)
  • fd_share.h

     
    2323// Receive socket descriptor on unix domain socket 'sock'.
    2424// Returned value is the socket descriptor received.
    2525// Errors are indicated by a return value of -1.
    26 int recv_fd(int sock);
     26int recv_fd(const int sock);
    2727
    2828// Send socket descriptor "fd" to server over unix domain socket 'sock',
    2929// the connection from socket 'sock' to unix domain server should be established first.
    3030// Errors are indicated by a return value of -1.
    31 int send_fd(int sock, int fd);
     31int send_fd(const int sock, const int fd);
    3232
    3333} // End for namespace xfr
    3434} // End for namespace isc