diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/examples/gfapi.py | 2 | ||||
-rw-r--r-- | api/examples/glfsxmp.c | 4 | ||||
-rw-r--r-- | api/src/glfs.h | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/api/examples/gfapi.py b/api/examples/gfapi.py index e71a9866e65..8fc3bfa4c89 100644 --- a/api/examples/gfapi.py +++ b/api/examples/gfapi.py @@ -10,7 +10,7 @@ api = ctypes.CDLL("api/libgfapi.so",ctypes.RTLD_GLOBAL) fs = api.glfs_new(sys.argv[1]) api.glfs_set_logging(fs,"/dev/stderr",7) -api.glfs_set_volfile_server(fs,"socket","localhost",24007) +api.glfs_set_volfile_server(fs,"tcp","localhost",24007) api.glfs_init(fs) print "Initialized volume" diff --git a/api/examples/glfsxmp.c b/api/examples/glfsxmp.c index c72c828f598..b359cc7444c 100644 --- a/api/examples/glfsxmp.c +++ b/api/examples/glfsxmp.c @@ -81,7 +81,7 @@ main (int argc, char *argv[]) // ret = glfs_set_volfile (fs, "/tmp/posix.vol"); - ret = glfs_set_volfile_server (fs, "socket", "localhost", 24007); + ret = glfs_set_volfile_server (fs, "tcp", "localhost", 24007); // ret = glfs_set_volfile_server (fs, "unix", "/tmp/gluster.sock", 0); @@ -102,7 +102,7 @@ main (int argc, char *argv[]) // ret = glfs_set_volfile (fs2, "/tmp/posix.vol"); - ret = glfs_set_volfile_server (fs2, "socket", "localhost", 24007); + ret = glfs_set_volfile_server (fs2, "tcp", "localhost", 24007); ret = glfs_set_logging (fs2, "/dev/stderr", 7); diff --git a/api/src/glfs.h b/api/src/glfs.h index ded42febab5..e19c1cd2591 100644 --- a/api/src/glfs.h +++ b/api/src/glfs.h @@ -136,9 +136,9 @@ int glfs_set_volfile (glfs_t *fs, const char *volfile); @transport: String specifying the transport used to connect to the management daemon. Specifying NULL will result in the usage - of the default (socket) transport type. Permitted values + of the default (tcp) transport type. Permitted values are those what you specify as transport-type in a volume - specification file (e.g "socket", "rdma", "unix".) + specification file (e.g "tcp", "rdma", "unix".) @host: String specifying the address of where to find the management daemon. Depending on the transport type this would either be |