X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Fstream-provider.h;h=8347ac6f5d748125b523b9a8706b37a2838b0791;hb=d73728e6bc30c8e6b393699ef78eb7919b1c68c5;hp=43c63e81beafdc671a95ca2c137eab5c94da9563;hpb=798e1352d09bc48d1eecb6ecf1b2c21d9b1ba2a5;p=sliver-openvswitch.git diff --git a/lib/stream-provider.h b/lib/stream-provider.h index 43c63e81b..8347ac6f5 100644 --- a/lib/stream-provider.h +++ b/lib/stream-provider.h @@ -29,19 +29,11 @@ struct stream { const struct stream_class *class; int state; int error; - ovs_be32 remote_ip; - ovs_be16 remote_port; - ovs_be32 local_ip; - ovs_be16 local_port; char *name; }; void stream_init(struct stream *, const struct stream_class *, int connect_status, const char *name); -void stream_set_remote_ip(struct stream *, ovs_be32 remote_ip); -void stream_set_remote_port(struct stream *, ovs_be16 remote_port); -void stream_set_local_ip(struct stream *, ovs_be32 local_ip); -void stream_set_local_port(struct stream *, ovs_be16 local_port); static inline void stream_assert_class(const struct stream *stream, const struct stream_class *class) { @@ -199,8 +191,13 @@ struct pstream_class { /* Active and passive stream classes. */ extern const struct stream_class tcp_stream_class; extern const struct pstream_class ptcp_pstream_class; +#ifndef _WIN32 extern const struct stream_class unix_stream_class; extern const struct pstream_class punix_pstream_class; +#else +extern const struct stream_class windows_stream_class; +extern const struct pstream_class pwindows_pstream_class; +#endif #ifdef HAVE_OPENSSL extern const struct stream_class ssl_stream_class; extern const struct pstream_class pssl_pstream_class;