By the spec sheet, the client only enters in the persons name they want to view details about. So the client will enter "Name", it's only a last name, not a first and last. They send this over to the server.
Now, are you saying I should do a function call on the server side calculating the length of the string then send that with the string? This sounds silly, so I don't think this is what you mean, unless I am missing the point of doing this....
At the moment, the server receives a buffer of 255 characters with the users input inside. It's only going to be a name, maximum of 50 characters. Why must I worry about this any more?
Once I'm on the server side and I have the buffer with the name passed, can't I just use it from there and perform server side code to find the matching information associated with the name passed? Sorry if I'm misunderstanding but I'm not quite sure of the importance of the server receiving the length of the string the client sends.
I'd really love if you could clear up my confusion ><