00001 #ifndef DV_NET_USOCKETSETUP 00002 #define DV_NET_USOCKETSETUP 00003 // $Id: usocksetup.h,v 1.4 2007/12/02 13:22:08 dvermeir Exp $ 00004 #include <string> 00005 #include <stdexcept> 00006 #include <sys/socket.h> 00007 #include <sys/un.h> 00008 00009 namespace Dv { 00010 namespace Net { 00011 /** Auxiliary function: initialize addr from filename. 00012 * @param filename 00013 * @param addr to initialize from filename 00014 * @param len of addr? 00015 */ 00016 void setup_unsocket(const std::string& filename, 00017 sockaddr_un& addr, socklen_t& len) throw (std::runtime_error); 00018 } 00019 } 00020 #endif
dvnet-0.9.24 | [ 5 December, 2009] |