Add getNativeHandle functions
This commit is contained in:
@@ -35,6 +35,11 @@ struct AsyncSocket {
|
||||
friend struct TopicTree;
|
||||
|
||||
protected:
|
||||
/* Returns SSL pointer or FD as pointer */
|
||||
void *getNativeHandle() {
|
||||
return us_socket_get_native_handle(SSL, (us_socket_t *) this);
|
||||
}
|
||||
|
||||
/* Get loop data for socket */
|
||||
LoopData *getLoopData() {
|
||||
return (LoopData *) us_loop_ext(us_socket_context_loop(SSL, us_socket_context(SSL, (us_socket_t *) this)));
|
||||
|
||||
Reference in New Issue
Block a user