I am dealing with a special task, where i need to create a delay on TCP outputstream. This is due to restriction on the receiver device.
The other problem i might be facing is overflow in the output buffer, since i might be writing to it way too fast compared to the reduced transmission speed.
How would one deal with this kind of problem?
I am not exactly sure whether you need a solution for MacOSX or iOS but as you have only tagged Objective -C try looking into this documentation link
performSelector:withObject:afterDelay:
This method will let you perform you code after a delay! there are other methods for performing on main thread or else in background.