Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: GnuPG: devel

sending large bulk data with assuan

 

 

GnuPG devel RSS feed   Index | Next | Previous | View Threaded


sutter at informatik

Jul 24, 2008, 6:06 AM

Post #1 of 3 (182 views)
Permalink
sending large bulk data with assuan

Hi!

I want to send about 3.5kBytes of bulk data using assuan_send_data() on
the server side. On client side this is triggered using
assuan_transact() and a data callback function.

The problem here is the callback function only receives the first line
of data (996 Bytes). Though when I talk assuan directly to the server
(i.e. executing it and typing the commands manually) I get four lines of
data (prefixed with "D") and then a final "OK".

The data being transfered is just a long string of (uppercase) hex
chars, so no escaping should be necessary.

Do you have any idea why this happens or what I'm doing wrong? Sadly,
the Assuan Infopage isn't too verbose about this particular topic, and
searching the GnuPG code didn't reveal any special magic when doing bulk
data transfers.

Greetings, Phil


sutter at informatik

Jul 25, 2008, 7:37 AM

Post #2 of 3 (154 views)
Permalink
Re: sending large bulk data with assuan [In reply to]

Hi,

On Thu, Jul 24, 2008 at 03:06:37PM +0200, Phil Sutter wrote:
> The problem here is the callback function only receives the first line
> of data (996 Bytes). Though when I talk assuan directly to the server
> (i.e. executing it and typing the commands manually) I get four lines of
> data (prefixed with "D") and then a final "OK".

Ok, forget it. I already knew that the callback functions have to return
zero to indicate everything is fine. Though having a statement like
this:
| return (write(fd, buf, len) == len);
is a very bad idea.

Sorry for the traffic these mails generated. ;)

Greetings, Phil


wk at gnupg

Jul 28, 2008, 9:10 AM

Post #3 of 3 (152 views)
Permalink
Re: sending large bulk data with assuan [In reply to]

On Fri, 25 Jul 2008 16:37, sutter[at]informatik.hs-furtwangen.de said:

> Sorry for the traffic these mails generated. ;)

Such mails are often a good resource for people to find answers on their
questions without asking. Thus no need to be sorry about sending
questions and figuring out the answer yourself (but let the list know
the solution).


Shalom-Salam,

Werner

--
Die Gedanken sind frei. Auschnahme regelt ein Bundeschgesetz.


_______________________________________________
Gnupg-devel mailing list
Gnupg-devel[at]gnupg.org
http://lists.gnupg.org/mailman/listinfo/gnupg-devel

GnuPG devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.