From c7c99151148f12bbd56c9649e8ca9d75c2c8f405 Mon Sep 17 00:00:00 2001 From: JINMEI Tatuya Date: Fri, 30 Oct 2009 17:37:04 +0000 Subject: [PATCH] a quick hack to get socket from a session object git-svn-id: svn://bind10.isc.org/svn/bind10/branches/f2f200910@235 e5f2f494-b856-4b98-b285-d166d9295462 --- src/lib/cc/cpp/session.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/lib/cc/cpp/session.h b/src/lib/cc/cpp/session.h index a46ef96e72..bffebba81f 100644 --- a/src/lib/cc/cpp/session.h +++ b/src/lib/cc/cpp/session.h @@ -30,6 +30,9 @@ namespace ISC { Session(); + // XXX: quick hack to allow the user to watch the socket directly. + int getSocket() const { return (sock); } + void establish(); void disconnect(); void sendmsg(ISC::Data::ElementPtr& msg);