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

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

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

openxml - Programmatically format a date in an excel sheet using Office Open Xml SDK -