Changeset 13:af2a928f0e63 in xplcommon
- Timestamp:
- 12/29/12 09:23:04 (12 years ago)
- Branch:
- default
- Phase:
- public
- Location:
- src/xplcommon/posix
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/xplcommon/posix/LocalServerSocket.cc
r12 r13 39 39 40 40 #include <sys/socket.h> 41 #include <sys/un.h>42 41 43 42 //------------------------------------------------------------------------------ … … 64 63 acceptor(this) 65 64 { 66 struct sockaddr_un sun;67 65 sun.sun_family = AF_UNIX; 68 66 setupPath(sun, name); … … 83 81 //------------------------------------------------------------------------------ 84 82 83 LocalServerSocket::~LocalServerSocket() 84 { 85 unlink(sun.sun_path); 86 } 87 88 //------------------------------------------------------------------------------ 89 85 90 // Local Variables: 86 91 // mode: C++ -
src/xplcommon/posix/LocalServerSocket.h
r11 r13 37 37 #include "LocalAcceptor.h" 38 38 39 //------------------------------------------------------------------------------ 40 41 struct sockaddr_un; 39 #include <sys/un.h> 42 40 43 41 //------------------------------------------------------------------------------ … … 62 60 63 61 /** 62 * Our address (to be used when deleting the file in the 63 * destructor. 64 */ 65 struct sockaddr_un sun; 66 67 /** 64 68 * The acceptor to use for accepting connections. 65 69 */ … … 79 83 */ 80 84 LocalServerSocket(const char* name, Waiter* waiter = 0); 85 86 /** 87 * Destroy the socket by deleting the file. 88 */ 89 virtual ~LocalServerSocket(); 81 90 82 91 /**
Note:
See TracChangeset
for help on using the changeset viewer.