Buffer problem in socket?

I implemented a class to send data over Internet by using winsock. The protocol is UDP. I want to sent the following entire line
0 -65.5107 -88.1142 0.999312 -0.0338224 0.0152333 0 0.0370946 0.910334 -0.412208 0 7.44406e-005 0.412489 0.910962 0 0 -65.5107 -88.1142


This is my function

1
2
3
4
5
6
//send data to the Slave
	std::cout << strlen(sendData) << " " << slen << std::endl;
    if (sendto(s, sendData, strlen(sendData) , 0 , (struct sockaddr *) &si_other, slen) == SOCKET_ERROR)
    {
        std::cout << "sendto() failed. Error: " <<  WSAGetLastError() << std::endl;
    }


the problem is the size of my data is 135 ( with slightly varying) and slen is 16. I couldn't manage to change it. Is it fixed? As far as I know the max size of UDP is 64 Kbyte but my data is around 134 byte. What is the problem?
Topic archived. No new replies allowed.