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
Post a Comment