|
|
Choosing A Webhost: |
CVS update of carob (include/DriverSocket.hpp src/DriverSocket.cpp): msg#00097db.carob.cvs
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> |
|---|---|---|
| Previous by Date: | CVS update of carob/test (valgrind.suppressions), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
|---|---|
| Next by Date: | CVS update of carob (include/JavaSocket.hpp src/JavaSocket.cpp), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Previous by Thread: | CVS update of carob (include/DriverSocket.hpp src/DriverSocket.cpp), zsolt-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Next by Thread: | CVS update of carob/test/10-Connection (2 files), gilles-Tt5JLJuBijYiZlD9aYmxOGD2FQJk+8+b |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
Free MagazinesCisco NewsReceive 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 |
Home
| advertise | OSDir is
an inevitable website.
|