Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

CVS update of carob (include/DriverSocket.hpp src/DriverSocket.cpp): msg#00097

db.carob.cvs

Subject: CVS update of carob (include/DriverSocket.hpp src/DriverSocket.cpp)

Date: Friday, February 24, 2006 @ 18:26:25
Author: gilles
Path: /cvsroot/carob/carob

Modified: include/DriverSocket.hpp (1.13 -> 1.14) src/DriverSocket.cpp
(1.17 -> 1.18)

Added reader and writer for byte arrays


--------------------------+
include/DriverSocket.hpp | 15 +++++++++++++--
src/DriverSocket.cpp | 12 ++++++++++++
2 files changed, 25 insertions(+), 2 deletions(-)


Index: carob/include/DriverSocket.hpp
diff -u carob/include/DriverSocket.hpp:1.13 carob/include/DriverSocket.hpp:1.14
--- carob/include/DriverSocket.hpp:1.13 Thu Feb 23 12:09:56 2006
+++ carob/include/DriverSocket.hpp Fri Feb 24 18:26:25 2006
@@ -1,6 +1,6 @@
/*
* Sequoia: Database clustering technology.
- * Copyright (C) 2005 Emic Networks
+ * Copyright (C) 2005-2006 Continuent, Inc.
* Contact: sequoia-NAAfj4rwCWAYtQj7fl1lsA@xxxxxxxxxxxxxxxx
*
* Licensed under the Apache License, Version 2.0 (the "License");
@@ -102,7 +102,18 @@
*/
const DriverSocket & operator>>(bool& i) const
throw (SocketIOException, UnexpectedException);
-
+ /**
+ * Reads given number of bytes from the socket into the given array
+ * @throws SocketIOException
+ */
+ void readBytes(int32_t length, java_byte* data) const
+ throw (SocketIOException, UnexpectedException);
+ /**
+ * Writes given number of bytes from the socket
+ * @throws SocketIOException
+ */
+ void writeBytes(int32_t length, java_byte* data) const
+ throw (SocketIOException, UnexpectedException);
};

} //namespace CarobNS
Index: carob/src/DriverSocket.cpp
diff -u carob/src/DriverSocket.cpp:1.17 carob/src/DriverSocket.cpp:1.18
--- carob/src/DriverSocket.cpp:1.17 Thu Feb 23 12:09:56 2006
+++ carob/src/DriverSocket.cpp Fri Feb 24 18:26:25 2006
@@ -127,3 +127,15 @@
readJavaBool(b);
return *this;
}
+
+void DriverSocket::readBytes(int32_t length, java_byte* data) const
+ throw (SocketIOException, UnexpectedException)
+{
+ readJavaBytes(length, data);
+}
+
+void DriverSocket::writeBytes(int32_t length, java_byte* data) const
+ throw (SocketIOException, UnexpectedException)
+{
+ writeJavaBytes(length, data);
+}


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation

Home | advertise | OSDir is an inevitable website. super tiny logo