X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=net.c;h=64602a4bf60e7ce934f230cb0ae9d63f5ec404f5;hp=be637ec7a5e24e7d1856ed21370139d7a05c5a2c;hb=edeb499676e6d042ef1a913914a9fcb45a8cadde;hpb=f32c0776882e01913c64c8ccbf2d94e0fb4d6369 diff --git a/net.c b/net.c index be637ec7..64602a4b 100644 --- a/net.c +++ b/net.c @@ -941,15 +941,17 @@ err: * This function creates a local socket for sequenced, reliable, two-way, * connection-based byte streams. * - * \return The file descriptor, on success, negative on errors. + * \return The file descriptor of the connected socket on success, negative on + * errors. * * \sa create_local_socket(), unix(7), connect(2). */ -int create_remote_socket(const char *name) +int connect_local_socket(const char *name) { struct sockaddr_un unix_addr; int fd, ret; + PARA_DEBUG_LOG("connecting to %s\n", name); ret = init_unix_addr(&unix_addr, name); if (ret < 0) return ret;