[Spread-users] max length of char* inputs to SP_connect?

Jonathan Stanton jonathan at cnds.jhu.edu
Tue Nov 14 02:56:51 EST 2006

You are correct about private_name and private_group.

spread_name has really depended on the length of a host name, so I have changed the 
library code to define the size of spread_name explictly in terms of  
MAXHOSTNAMELEN. This change will be in 3.17.4 and 4.0.

I did not place it in a header file as it is not something spread should change -- 
it depends on your systems host name size. 



On Mon, Oct 23, 2006 at 10:17:11AM -0500, Matt Garman wrote:
> Just as a sanity check, can someone confirm that the following are the
> maximum input lengths for the char string arguments of SP_connect()?
> spread_name    80 (hard-coded value in libspread/sp.c:552)
> private_name     MAX_PRIVATE_NAME (#define'ed in include/sp.h)
> private_group     MAX_GROUP_NAME (#define'ed in include/sp.h)
> Mainly, I want to make sure I understand the restrictions on the first
> argument correctly.  If that is indeed the case, could that be
> #define'ed as well, and moved into a header file?
> Thank you,
> Matt
> _______________________________________________
> Spread-users mailing list
> Spread-users at lists.spread.org
> http://lists.spread.org/mailman/listinfo/spread-users

Jonathan R. Stanton         jonathan at cs.jhu.edu
Dept. of Computer Science   
Johns Hopkins University    

More information about the Spread-users mailing list