Commit c048a21
committed
Use platform-specific checks for invalid descriptors
Check network fd/socket validity using INVALID_SOCKET on Windows
(requiring conditional winsock2.h include) and < 0 otherwise.
Fixes -Wsign-compare warning.1 parent 6a302d0 commit c048a21
1 file changed
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
65 | 68 | | |
66 | 69 | | |
67 | 70 | | |
| |||
6776 | 6779 | | |
6777 | 6780 | | |
6778 | 6781 | | |
| 6782 | + | |
| 6783 | + | |
| 6784 | + | |
| 6785 | + | |
6779 | 6786 | | |
| 6787 | + | |
6780 | 6788 | | |
6781 | 6789 | | |
6782 | 6790 | | |
| |||
0 commit comments