Click here to Skip to main content
15,892,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all, I am trying to make my own cryptonight miner, I don't intend it to be publish commercially, but I just wanna learn more, now here's my code:

C++
char *sendbuffer = {"id": 1, "method": "mining.subscribe", "params": []}\n;
send(sock, sendbuffer, (int)strlen(sendbuffer), 0);


I really do think it's wrong

What I have tried:

I havn't tried compiling it cause I know it will just give me a lot of errors
Posted
Comments
Richard MacCutchan 20-Feb-18 5:16am    
No, it is not valid. What you have looks like JSON, so you need to encode it into a valid string.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900