[Gambas-devel] socket

Frank Berg frankberg at ...136...
Mon May 16 16:38:18 CEST 2005


hi, daniel

solong its work great with the gb.api
now i try to use an struct but i dount know  how:

struct sockaddr {
  sa_family_t    sa_family        /* adress family
  char              sa_data[14]    /* 14 byte of protokoll  
};

'######

private sa as ApiStruct
private asize as integer
......
sa = NEW ApiStruct (["sa_family","sa_data"],[api.short,14])
asize=sa.size

'######

how must i define the length of 14 byte of data.
the rest are clear for me, but not define length of a char data string 

frank



----- Original Message ----- 
From: "Daniel Campos" <daniel.campos at ...103...>
To: <gambas-devel at lists.sourceforge.net>
Sent: Saturday, May 14, 2005 7:54 PM
Subject: Re: [Gambas-devel] socket


> It is just glibc, so you should declare:
> 
> LIBRARY "libc.6"
> 
> in gambas-1.9.8
> 
> Regards,
> 
> D. Campos
> 
> 
> 






More information about the Devel mailing list