Socket interface specification

Re: Socket interface specification

par Pasindu Nivanthaka Tennage,
Number of replies: 0
Udp Send() and receive() calls are blocking calls: when invoked the calling thread gets blocked till the operation is completed. Since the Send(), and receive() involve a context switch these operations are slow. In the worst case scenarios, a call to Send() can block for more than a second, that will affect the performance of the entire node. To avoid this, we provide a timeout, after which the call returns (even without succeeding)