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 -

c# - How to add a new treeview at the selected node? -

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