@@ -54,12 +54,12 @@ The following shows the process of a simple request in more detail.
54
54
2. Specify the path to the Unix domain socket in the file system:
55
55
56
56
.. note :: If **gvmd** is provided by a package of the distribution, it should
57
- be ``/var/ run/gvmd.sock ``. If **gvmd ** was built from source and did not set
57
+ be ``/run/gvmd /gvmd.sock ``. If **gvmd ** was built from source and did not set
58
58
a prefix, the default path can be used by setting ``path = None ``.
59
59
60
60
.. code-block :: python
61
61
62
- path = ' /var/ run/gvmd.sock'
62
+ path = ' /run/gvmd /gvmd.sock'
63
63
64
64
3. Create a connection and a gmp object:
65
65
@@ -89,7 +89,7 @@ Full Example
89
89
from gvm.protocols.gmp import Gmp
90
90
91
91
# path to unix socket
92
- path = ' /var/ run/gvmd.sock'
92
+ path = ' /run/gvmd /gvmd.sock'
93
93
connection = UnixSocketConnection(path = path)
94
94
95
95
# using the with statement to automatically connect and disconnect to gvmd
@@ -126,7 +126,7 @@ Step by Step
126
126
127
127
.. code-block :: python
128
128
129
- path = ' /var/ run/gvmd.sock'
129
+ path = ' /run/gvmd /gvmd.sock'
130
130
connection = UnixSocketConnection(path = path)
131
131
132
132
3. In this case, an `Etree Element `_ should be obtained from the response to be able to
@@ -192,7 +192,7 @@ Full Example
192
192
from gvm.protocols.gmp import Gmp
193
193
from gvm.transforms import EtreeCheckCommandTransform
194
194
195
- path = ' /var/ run/gvmd.sock'
195
+ path = ' /run/gvmd /gvmd.sock'
196
196
connection = UnixSocketConnection(path = path)
197
197
transform = EtreeCheckCommandTransform()
198
198
@@ -336,7 +336,7 @@ Example using GMP:
336
336
from gvm.connections import UnixSocketConnection, DebugConnection
337
337
from gvm.protocols.gmp import Gmp
338
338
339
- path = ' /var/ run/gvmd.sock'
339
+ path = ' /run/gvmd /gvmd.sock'
340
340
socketconnection = UnixSocketConnection(path = path)
341
341
connection = DebugConnection(socketconnection)
342
342
0 commit comments