diff options
Diffstat (limited to 'common/trans.h')
| -rw-r--r-- | common/trans.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/trans.h b/common/trans.h index 8daa980a..b7b9c20d 100644 --- a/common/trans.h +++ b/common/trans.h @@ -38,6 +38,7 @@ struct trans; /* forward declaration */ typedef int (*ttrans_data_in)(struct trans* self); typedef int (*ttrans_conn_in)(struct trans* self, struct trans* new_self); +typedef int (*tis_term)(void); struct trans { @@ -52,6 +53,8 @@ struct trans struct stream* in_s; struct stream* out_s; char* listen_filename; + tis_term is_term; /* used to test for exit */ + struct stream* wait_s; }; struct trans* APP_CC @@ -71,6 +74,8 @@ trans_force_read(struct trans* self, int size); int APP_CC trans_force_write(struct trans* self); int APP_CC +trans_write_copy(struct trans* self); +int APP_CC trans_connect(struct trans* self, const char* server, const char* port, int timeout); int APP_CC |
