Browse Source

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
JINMEI Tatuya 15 years ago
parent
commit
c7c9915114
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/lib/cc/cpp/session.h

+ 3 - 0
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);