c++ - while accepting socket connection -


unsigned __int8 decrypt(unsigned __int8 data[]);  for(;;)     {         if((sconnect=accept(slisten,(sockaddr*)&addr,&addrlen)) != invalid_socket)         {             print("socket connected successfully!");             char buf[4095];             recv(slisten,buf,sizeof(buf),0);             decrypt(buf); // error:intellisense: argument of type "char *" incompatible parameter of type "unsigned char *"          } 

how can fix prob :-s

cast buf unsigned __int8 when call decrypt.

decrypt((unsigned __int8*)buf); 

Comments

Popular posts from this blog

delphi - TJvHidDeviceController "DevicePath" always showing "\" -

Disabling Android home button for industry application -

asp.net mvc 3 - Unexpected "foreach" keyword after "@" character -