|
From: Vijit G. <vij...@ar...> - 2010-09-21 17:05:58
|
Hi,
I was trying to use TIPC_ADDR_ID in my code in the following way
*****************************************************************************************
struct sockaddr_tipc addr;
sock = socket (AF_TIPC, SOCK_DGRAM,0);
addr.family = AF_TIPC;
addr.addrtype = TIPC_ADDR_ID;
addr.addr.id.ref = 1234;
addr.addr.id.node = 0;
addr.scope = TIPC_ZONE_SCOPE;
if (0 != bind (sock, (struct sockaddr*)&addr,sizeof(addr)))
{
perror ("Server: Failed to bind port name:");
exit (1);
}
******************************************************************************************
But i am getting a the following bind error
"Address family not supported by protocol"
Kindly let me know why is this happening.
Regards,
Vijit Gosain
"DISCLAIMER: This message is proprietary to Aricent and is intended solely for the use of the individual to whom it is addressed. It may contain privileged or confidential information and should not be circulated or used for any purpose other than for what it is intended. If you have received this message in error, please notify the originator immediately. If you are not the intended recipient, you are notified that you are strictly prohibited from using, copying, altering, or disclosing the contents of this message. Aricent accepts no responsibility for loss or damage arising from the use of the information transmitted by this email including damage from virus."
|