| 1106 | } |
| 1107 | |
| 1108 | static FILE *get_fsockout(struct handle_data *handle_data_arg) |
| 1109 | { |
| 1110 | #ifdef __MINGW32__ |
| 1111 | int sock_osfhandle = _open_osfhandle(handle_data_arg->sock, _O_RDONLY); |
| 1112 | return _fdopen(sock_osfhandle, "wb"); |
| 1113 | #else |
| 1114 | return fdopen(handle_data_arg->sock, "wb"); |
| 1115 | #endif |
| 1116 | } |
| 1117 | |
| 1118 | static FILE *get_fsockin(struct handle_data *handle_data_arg) |
| 1119 | { |