#ifndef __SERVICE_STREAM_H__
#define __SERVICE_STREAM_H__
-#include "librpc/gen_ndr/misc.h"
+#include "librpc/gen_ndr/server_id.h"
/* modules can use the following to determine if the interface has changed
* please increment the version number after each interface change
const struct stream_server_ops *ops;
const struct model_ops *model_ops;
struct server_id server_id;
- void *private;
+ void *private_data;
struct {
- struct event_context *ctx;
- struct fd_event *fde;
+ struct tevent_context *ctx;
+ struct tevent_fd *fde;
} event;
struct socket_context *socket;
struct messaging_context *msg_ctx;
+ struct loadparm_context *lp_ctx;
+
+ struct tstream_context *tstream;
+ struct tsocket_address *local_address;
+ struct tsocket_address *remote_address;
+
+ /*
+ * this transport layer session info, normally NULL
+ * which means the same as an anonymous session info
+ */
+ struct auth_session_info *session_info;
bool processing;
const char *terminate;
void (*send_handler)(struct stream_connection *, uint16_t);
};
+void stream_terminate_connection(struct stream_connection *srv_conn, const char *reason);
+
#endif /* __SERVICE_STREAM_H__ */