[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

TR: apr_size_t len : is there a max size (3555)?

From: Dario Cham <dcham_at_wings.fr>
Date: Mon, 31 Mar 2014 21:29:42 +0000

Hello,

Please, I would like to know if there is a max size to initialize to apr_size_t len ?
Because my source code here below does not work (with apr_size_t len =4096).
I have made some tests with apr_size_t len = 3555 and it's working fine.
Thank you for your help.

 int tailleBuffer = 4096;
    char* buf = NULL;
    buf = malloc(tailleBuffer * sizeof(char));
    apr_size_t len = tailleBuffer;

    rv = apr_socket_send(skt, str, &len); //failed

Regards.

Dario CHAM
Database System & Network Administrator
[logo]
25 rue des Mathurins
75008 PARIS
Tél. : 33 (0)1 42 80 41 44
Mob : 33 (0)6 11 43 45 86
email : dcham_at_wings.fr<mailto:dcham_at_wings.fr>

image001.png
Received on 2014-04-01 07:31:50 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.