[Box Backup-commit] COMMIT r1066 - box/chris/general/lib/server

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Mon Oct 16 00:03:39 BST 2006


Author: chris
Date: 2006-10-16 00:03:39 +0100 (Mon, 16 Oct 2006)
New Revision: 1066

Modified:
   box/chris/general/lib/server/SocketStream.h
Log:
Added a method to determine whether or not a socket has been attached to
something.


Modified: box/chris/general/lib/server/SocketStream.h
===================================================================
--- box/chris/general/lib/server/SocketStream.h	2006-10-15 23:03:00 UTC (rev 1065)
+++ box/chris/general/lib/server/SocketStream.h	2006-10-15 23:03:39 UTC (rev 1066)
@@ -67,6 +67,7 @@
 	off_t GetBytesRead() const {return mBytesRead;}
 	off_t GetBytesWritten() const {return mBytesWritten;}
 	void ResetCounters() {mBytesRead = mBytesWritten = 0;}
+	bool IsOpened() { return mSocketHandle != INVALID_SOCKET_VALUE; }
 };
 
 #endif // SOCKETSTREAM__H




More information about the Boxbackup-commit mailing list