Permalink
Browse files

Add clarification for abstract sockets

  • Loading branch information...
1 parent 0c9e508 commit 989b7d7fa054ed37c92266cb48a620d6412fa05c @patricklucas patricklucas committed Feb 27, 2012
Showing with 4 additions and 1 deletion.
  1. +3 −0 README.rst
  2. +1 −1 bjoern/server.c
View
@@ -61,6 +61,9 @@ Usage
# Bind to Unix socket:
bjoern.run(wsgi_application, 'unix:/path/to/socket')
+ # Bind to abstract Unix socket: (Linux only)
+ bjoern.run(wsgi_application, 'unix:@socket_name')
+
Alternatively, the mainloop can be run separately::
bjoern.listen(wsgi_application, host, port)
View
@@ -89,7 +89,7 @@ bool server_init(const char* hostaddr, const int port)
sockaddr.sun_family = PF_UNIX;
strcpy(sockaddr.sun_path, hostaddr);
- /* Use @ for abstract */
+ /* Use @ for abstract (Linux) */
if(hostaddr[0] == '@')
sockaddr.sun_path[0] = '\0';
else

0 comments on commit 989b7d7

Please sign in to comment.