Recording Using the Winsock protocol will slow the response time during playback. This is mainly because the content received by recv_buff during recording is inconsistent with that during playback. The system will automatically check the content.
Solution: Add a function in the program: lrs_set_recv_timeout2 (), so that the system does not check whether the recycled content is consistent.
Two functions are introduced:
1. lrs_set_recv_timeout (SEC, microsec)
The function sets the period of time that vugen waits to receive expected data from a socket.
Default Value = 10 s
2. lrs_set_recv_timeout2 (SEC, microsec)
The function sets a timeout limit for processing data on a socket. When lrs_receive buffers es the data buffer, it compares its size with the expected data. if the buffer size does not match, it performs additional iterations and rereads the incoming socket data, until the timeout2 limit is reached.