diff options
author | Ben Pfaff <blp@nicira.com> | 2010-03-18 12:59:33 -0700 |
---|---|---|
committer | Ben Pfaff <blp@nicira.com> | 2010-04-12 11:13:13 -0700 |
commit | f39dc942afd5fe241903aada30850a1d96122c8c (patch) | |
tree | 2c5354e2a98448d07e5a3781103b4f321040f4cc /lib/stream.h | |
parent | 766407ea9011d347d577a3409acb0f8d34cc72e1 (diff) |
vconn-stream: Factor out port defaults into public helper functions.
These functions will be used elsewhere in an upcoming commit.
Diffstat (limited to 'lib/stream.h')
-rw-r--r-- | lib/stream.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/stream.h b/lib/stream.h index 8c4e78a3..d05107de 100644 --- a/lib/stream.h +++ b/lib/stream.h @@ -61,5 +61,16 @@ void pstream_close(struct pstream *); int pstream_accept(struct pstream *, struct stream **); int pstream_accept_block(struct pstream *, struct stream **); void pstream_wait(struct pstream *); + +/* Convenience funtions. */ + +int stream_open_with_default_ports(const char *name, + uint16_t default_tcp_port, + uint16_t default_ssl_port, + struct stream **); +int pstream_open_with_default_ports(const char *name, + uint16_t default_ptcp_port, + uint16_t default_pssl_port, + struct pstream **); #endif /* stream.h */ |