Commit 704b4cc8 authored by Pontus Freyhult's avatar Pontus Freyhult
Browse files

New variable local in listen_value.

make_listen_value takes an extra struct address_info*.
(fd2info): declaration of new function.

Rev: src/io.h:1.89
parent 39ad3150
...@@ -182,12 +182,14 @@ make_local_info(struct lsh_string *directory, ...@@ -182,12 +182,14 @@ make_local_info(struct lsh_string *directory,
(name listen_value) (name listen_value)
(vars (vars
(fd object lsh_fd) (fd object lsh_fd)
(peer object address_info))) (peer object address_info)
(local object address_info)))
*/ */
struct listen_value * struct listen_value *
make_listen_value(struct lsh_fd *fd, make_listen_value(struct lsh_fd *fd,
struct address_info *peer); struct address_info *peer,
struct address_info *local);
/* I/O exceptions */ /* I/O exceptions */
/* GABA: /* GABA:
...@@ -252,6 +254,9 @@ struct address_info * ...@@ -252,6 +254,9 @@ struct address_info *
make_address_info(struct lsh_string *host, make_address_info(struct lsh_string *host,
UINT32 port); UINT32 port);
struct address_info *
fd2info(struct lsh_fd *fd, int side);
struct address_info * struct address_info *
sockaddr2info(size_t addr_len, sockaddr2info(size_t addr_len,
struct sockaddr *addr); struct sockaddr *addr);
......
Supports Markdown
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