I am using a unix socket. When buffer is send to the socket it gives me unknown error 196. Please help on this.
BOOL SendData(int iBuffer) { //Send data over socket int nRet = send(m_listenSock, m_cBuffer, iBuffer, 0); if(SOCKET_ERROR > nRet) { //log the error char temp; int length= sizeof(int); int rc = getsockopt(m_listenSock,SOL_SOCKET,SO_ERROR,&temp,(socklen_t *)&length); //if(rc == 0) { errno = temp; perror("\nError is"); } #ifndef LINUX WSACleanup(); #else close(m_listenSock); #endif printf("\nSend data failed to"); return FALSE; } return TRUE; }