comparison channel.h @ 1800:c584b5602bd8

Return errstring on connect failure
author Matt Johnston <matt@ucc.asn.au>
date Fri, 05 Mar 2021 21:13:20 +0800
parents 79eef94ccea9
children 3f0ac6bc58a1
comparison
equal deleted inserted replaced
1799:8df3d6aa5f23 1800:c584b5602bd8
102 void (*closehandler)(const struct Channel*); 102 void (*closehandler)(const struct Channel*);
103 /* Frees resources, called just prior to channel being removed */ 103 /* Frees resources, called just prior to channel being removed */
104 void (*cleanup)(const struct Channel*); 104 void (*cleanup)(const struct Channel*);
105 }; 105 };
106 106
107 /* Callback for connect_remote */ 107 /* Callback for connect_remote. errstring may be NULL if result == DROPBEAR_SUCCESS */
108 void channel_connect_done(int result, int sock, void* user_data, const char* errstring); 108 void channel_connect_done(int result, int sock, void* user_data, const char* errstring);
109 109
110 void chaninitialise(const struct ChanType *chantypes[]); 110 void chaninitialise(const struct ChanType *chantypes[]);
111 void chancleanup(void); 111 void chancleanup(void);
112 void setchannelfds(fd_set *readfds, fd_set *writefds, int allow_reads); 112 void setchannelfds(fd_set *readfds, fd_set *writefds, int allow_reads);