diff options
author | Samuel Pitoiset <samuel.pitoiset@gmail.com> | 2012-05-21 11:24:55 +0200 |
---|---|---|
committer | Martin Storsjö <martin@martin.st> | 2012-05-22 23:16:42 +0300 |
commit | 4a9ca9355607053fdbcb8adcb614b08305eca88f (patch) | |
tree | cc8aba721fce591dc47780f45eb7f0b064ca4ee2 /libavformat/os_support.h | |
parent | 32d545e0a4686e919319bf472725ea0162b72720 (diff) | |
download | ffmpeg-4a9ca9355607053fdbcb8adcb614b08305eca88f.tar.gz |
tcp: Allow signalling end of reading/writing
tcp_shutdown() isn't needed at the moment, but is added for
consistency to explain how the function is supposed to be used.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diffstat (limited to 'libavformat/os_support.h')
-rw-r--r-- | libavformat/os_support.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libavformat/os_support.h b/libavformat/os_support.h index 20c6d73738..1088c6c31c 100644 --- a/libavformat/os_support.h +++ b/libavformat/os_support.h @@ -45,6 +45,12 @@ static inline int is_dos_path(const char *path) return 0; } +#if defined(_WIN32) +#define SHUT_RD SD_RECEIVE +#define SHUT_WR SD_SEND +#define SHUT_RDWR SD_BOTH +#endif + #if defined(_WIN32) && !defined(__MINGW32CE__) int ff_win32_open(const char *filename, int oflag, int pmode); #define open ff_win32_open |