Commit ff602a47 authored by Niels Möller's avatar Niels Möller
Browse files

(connect_list_command): New command.

Rev: src/io_commands.c:1.65
Rev: src/io_commands.h:1.34
parent a5e6ca8e
......@@ -244,6 +244,20 @@ DEFINE_COMMAND(connect_simple_command)
do_connect(address, NULL, c, e);
/* (connect addresses) */
(struct command *self UNUSED,
struct lsh_object *a,
struct command_continuation *c,
struct exception_handler *e)
CAST(sockaddr_list, addresses, a);
/* FIXME: Fix handshake_command to take a plain fd
as argument, not a listen value. */
make_connect_continuation(NULL, c), e);
/* (connect_connection connection port) */
......@@ -46,6 +46,8 @@ extern struct command_2 connect_connection_command;
extern struct command connect_simple_command;
#define CONNECT_SIMPLE (&connect_simple_command.super)
extern struct command connect_list_command;
#define CONNECT_LIST (&connect_list_command.super)
extern struct command connect_local_command;
#define CONNECT_LOCAL (&connect_local_command.super)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment