类的当前对象传递给回调函数

class BaseSocks;
typedef int (*socks_callback_t)(BaseSocks basesock,int response_fd, const char *msg, uint16_t len);
class BaseSocks {

run中传递*this指针。

posted on 2019-08-20 16:57  lydstory  阅读(360)  评论(0)    收藏  举报

导航