Klaus Demo bjoern / 4d41383
Merge pull request #61 from patricklucas/clarify_abstract_socket Add clarification for abstract sockets Jonas Haag 8 years ago
2 changed file(s) with 4 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
6060 # Bind to Unix socket:
6161 bjoern.run(wsgi_application, 'unix:/path/to/socket')
6262
63 # Bind to abstract Unix socket: (Linux only)
64 bjoern.run(wsgi_application, 'unix:@socket_name')
65
6366 Alternatively, the mainloop can be run separately::
6467
6568 bjoern.listen(wsgi_application, host, port)
8888 sockaddr.sun_family = PF_UNIX;
8989 strcpy(sockaddr.sun_path, hostaddr);
9090
91 /* Use @ for abstract */
91 /* Use @ for abstract (Linux) */
9292 if(hostaddr[0] == '@')
9393 sockaddr.sun_path[0] = '\0';
9494 else