summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/trans.c5
-rw-r--r--common/trans.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/common/trans.c b/common/trans.c
index c418877e..aced0667 100644
--- a/common/trans.c
+++ b/common/trans.c
@@ -282,7 +282,10 @@ trans_check_wait_objs(struct trans *self)
if (self->trans_data_in != 0)
{
rv = self->trans_data_in(self);
- init_stream(self->in_s, 0);
+ if (self->no_stream_init_on_data_in == 0)
+ {
+ init_stream(self->in_s, 0);
+ }
}
}
}
diff --git a/common/trans.h b/common/trans.h
index 31c90721..c2e5e0df 100644
--- a/common/trans.h
+++ b/common/trans.h
@@ -57,6 +57,8 @@ struct trans
struct stream* wait_s;
char addr[256];
char port[256];
+ int no_stream_init_on_data_in;
+ int extra_flags; /* user defined */
};
struct trans* APP_CC