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 "\" -

java - where to store the user credentials in an enterprise application(EAI)? -

java - netbeans "Please wait - classpath scanning in progress..." -