/*
- * Copyright (c) 2009, 2010, 2011, 2013 Nicira, Inc.
+ * Copyright (c) 2009, 2010, 2011, 2013, 2015 Nicira, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
#include <stdint.h>
#include <sys/types.h>
#include "openvswitch/types.h"
-#include "vlog.h"
#include "socket-util.h"
+#include "util.h"
struct pstream;
struct stream;
+struct vlog_module;
void stream_usage(const char *name, bool active, bool passive, bool bootstrap);
int stream_open_block(int error, struct stream **);
void stream_close(struct stream *);
const char *stream_get_name(const struct stream *);
-ovs_be32 stream_get_remote_ip(const struct stream *);
-ovs_be16 stream_get_remote_port(const struct stream *);
-ovs_be32 stream_get_local_ip(const struct stream *);
-ovs_be16 stream_get_local_port(const struct stream *);
int stream_connect(struct stream *);
int stream_recv(struct stream *, void *buffer, size_t n);
int stream_send(struct stream *, const void *buffer, size_t n);
int pstream_accept(struct pstream *, struct stream **);
int pstream_accept_block(struct pstream *, struct stream **);
void pstream_wait(struct pstream *);
-int pstream_set_dscp(struct pstream *, uint8_t dscp);
ovs_be16 pstream_get_bound_port(const struct pstream *);
\f