I've written a server in python and the client in C.
The python server send i.e. "1 1000\n" to the C client.
The C function that recieves this string should parse it into two long int's.
void receive_job() {
char tmp_buffer[256];
long start, stop;
recv(sock, tmp_buffer, 255, 0);
/*
here I wonder how I can parse tmp_buffer to set start and stop values.
*/
}
I am not very proficient in C, so I would appreciate a comment on this.