Hi! I need to access winsock2 functions. The function that I need is bind, the prototype is:
int bind(SOCKET s, const struct sockaddr *name, int namelen);
The structure is
struct sockaddr {
u_short sa_family;
char sa_data[14];
};
And what I need to "translate" from C to Labview is
main ()
{ SOCKET s;
//some instructions
struct sockaddr name;
name.sa_family=AF_J1850;
strcpy(name.sa_data,"COM2");
bind (s, &name, 7);
//some extra code
I've been reading, and I think I must create a cluster, and the cluster will be the structure, but I'm not sure. So If someone can help me,I'd appreciated it!
Thanks
Catalina