| 689 | } |
| 690 | |
| 691 | Result SetBlocking(Socket socket, bool blocking) |
| 692 | { |
| 693 | u_long arg; |
| 694 | if (blocking) |
| 695 | { |
| 696 | arg = 0; |
| 697 | } |
| 698 | else |
| 699 | { |
| 700 | arg = 1; |
| 701 | } |
| 702 | |
| 703 | int ret = ioctlsocket(socket, FIONBIO, &arg); |
| 704 | if (ret == 0) |
| 705 | { |
| 706 | return RESULT_OK; |
| 707 | } |
| 708 | else |
| 709 | { |
| 710 | return NATIVETORESULT(DM_SOCKET_ERRNO); |
| 711 | } |
| 712 | } |
| 713 | |
| 714 | Result SetNoDelay(Socket socket, bool no_delay) |
| 715 | { |
no outgoing calls