Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

C/C++ client server bind

Hi,

I've successfully added openCV to my project and i wanted to implement client-server system. The socket function doesn't throw an error but the bind method does

if(bind(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr))<0)

stating "invalid operands to binary expression "__bind<int &amp;,sockaddr="" *,unsigned="" long="">' and 'int'".

I found the bind function is not the same.There seems to be another bind function when i added the openCV library which seems to be overlapping.Can someone please help me with this issue?

Thank you

C/C++ client server bind

Hi,

I've successfully added openCV to my project and i wanted to implement client-server system. The socket function doesn't throw an error but the bind method does

if(bind(sockfd, (struct sockaddr *) &serv_addr, sizeof(serv_addr))<0)

stating "invalid operands to binary expression "__bind<int &amp;,sockaddr="" *,unsigned="" long="">' and 'int'".

I found the bind function is not the same.There seems to be another bind function when i added the openCV library which seems to be overlapping.Can someone please help me with this issue?

Thank you