diff options
Diffstat (limited to 'src/include/gnunet_connection_lib.h')
-rw-r--r-- | src/include/gnunet_connection_lib.h | 23 |
1 files changed, 22 insertions, 1 deletions
diff --git a/src/include/gnunet_connection_lib.h b/src/include/gnunet_connection_lib.h index 9701eb149..1230c10c8 100644 --- a/src/include/gnunet_connection_lib.h +++ b/src/include/gnunet_connection_lib.h | |||
@@ -155,7 +155,28 @@ struct GNUNET_CONNECTION_Handle | |||
155 | const struct GNUNET_CONFIGURATION_Handle *cfg, | 155 | const struct GNUNET_CONFIGURATION_Handle *cfg, |
156 | const char *hostname, | 156 | const char *hostname, |
157 | uint16_t port, | 157 | uint16_t port, |
158 | size_t maxbuf); | 158 | size_t maxbuf); |
159 | |||
160 | |||
161 | /** | ||
162 | * Create a socket handle by connecting to a UNIX domain service. | ||
163 | * This function returns immediately, even if the connection has not | ||
164 | * yet been established. This function only creates UNIX connections. | ||
165 | * | ||
166 | * @param sched scheduler to use | ||
167 | * @param cfg configuration to use | ||
168 | * @param unixpath path to connect to | ||
169 | * @param maxbuf maximum write buffer size for the socket (use | ||
170 | * 0 for sockets that need no write buffers, such as listen sockets) | ||
171 | * @return the socket handle, NULL on systems without UNIX support | ||
172 | */ | ||
173 | struct GNUNET_CONNECTION_Handle * | ||
174 | GNUNET_CONNECTION_create_from_connect_to_unixpath (struct GNUNET_SCHEDULER_Handle *sched, | ||
175 | const struct | ||
176 | GNUNET_CONFIGURATION_Handle *cfg, | ||
177 | const char *unixpath, | ||
178 | size_t maxbuf); | ||
179 | |||
159 | 180 | ||
160 | 181 | ||
161 | 182 | ||