i have a problem about sending data throgh tcp/ip. i use wip lib. when a client connects to my modem, i send some data to the client . this data about 12000 bytes and i send this with a timer interval of 1 seconds. i send 400 bytes every seconds by this timer.
now, my problem is sometimes i can not send this data with wip_write function. it returns zero that means it cant send any data at that time. then i wait for the next second and try to send again. usually i can not send along 30 seconds. when i get WIP_CEV_WRITE event, i can send again but it is too late.
my question is , how can i decrease this 30 seconds time so that my client wont think that timeout hapenned?
i search for SEND_LOWAT, RCV_LOWAT and WIP_COPT_NODELAY option but i count have an idea if these can solve my problem or not.