summaryrefslogtreecommitdiff
path: root/io/source/acceptor/acc_socket.cxx
diff options
context:
space:
mode:
authorJörg Budischewski <jbu@openoffice.org>2001-06-22 15:32:57 +0000
committerJörg Budischewski <jbu@openoffice.org>2001-06-22 15:32:57 +0000
commit4409e1cfb5d33e57c1eba238bd5ab9d153cbbacd (patch)
treeb5a5977d54c51cd971011c26286c922acdd272c9 /io/source/acceptor/acc_socket.cxx
parenta242da96dcd112e05ce9fa7f309d6618c61994f9 (diff)
#67468# Added unloading and context support
Diffstat (limited to 'io/source/acceptor/acc_socket.cxx')
-rw-r--r--io/source/acceptor/acc_socket.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/io/source/acceptor/acc_socket.cxx b/io/source/acceptor/acc_socket.cxx
index 6c3570e2fda8..757a518db70a 100644
--- a/io/source/acceptor/acc_socket.cxx
+++ b/io/source/acceptor/acc_socket.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: acc_socket.cxx,v $
*
- * $Revision: 1.8 $
+ * $Revision: 1.9 $
*
- * last change: $Author: jbu $ $Date: 2001-04-11 15:43:48 $
+ * last change: $Author: jbu $ $Date: 2001-06-22 16:32:55 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -110,6 +110,7 @@ namespace io_acceptor {
{
public:
SocketConnection( const ::rtl::OUString & s , sal_uInt16 nPort, const OUString & sConnectionDescription );
+ ~SocketConnection();
virtual sal_Int32 SAL_CALL read( ::com::sun::star::uno::Sequence< sal_Int8 >& aReadBytes,
sal_Int32 nBytesToRead )
@@ -203,11 +204,17 @@ namespace io_acceptor {
_closed(sal_False),
_error(sal_False)
{
+ g_moduleCount.modCnt.acquire( &g_moduleCount.modCnt );
// make it unique
m_sDescription += OUString( RTL_CONSTASCII_USTRINGPARAM( ",uniqueValue=" ) );
m_sDescription += OUString::valueOf( (sal_Int64) &m_socket , 10 );
}
+ SocketConnection::~SocketConnection()
+ {
+ g_moduleCount.modCnt.release( &g_moduleCount.modCnt );
+ }
+
void SocketConnection::completeConnectionString()
{
OUStringBuffer buf( 256 );