From 85cbbc35304f4af162ab4de8b128b71d30dfcadd Mon Sep 17 00:00:00 2001 From: alex Date: Thu, 29 May 2003 19:36:58 +0000 Subject: Using recv/send instead read/write for proper MinGW support (it's a 4.2BSD standard). Patch by FloDt git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10207 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/network.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libmpdemux/network.c') diff --git a/libmpdemux/network.c b/libmpdemux/network.c index b09effa647..46d77be2ae 100644 --- a/libmpdemux/network.c +++ b/libmpdemux/network.c @@ -428,7 +428,7 @@ http_send_request( URL_t *url ) { } mp_msg(MSGT_NETWORK,MSGL_DBG2,"Request: [%s]\n", http_hdr->buffer ); - ret = write( fd, http_hdr->buffer, http_hdr->buffer_size ); + ret = send( fd, http_hdr->buffer, http_hdr->buffer_size, 0 ); if( ret!=(int)http_hdr->buffer_size ) { mp_msg(MSGT_NETWORK,MSGL_ERR,"Error while sending HTTP request: didn't sent all the request\n"); return -1; @@ -451,7 +451,7 @@ http_read_response( int fd ) { } do { - i = read( fd, response, BUFFER_SIZE ); + i = recv( fd, response, BUFFER_SIZE, 0 ); if( i<0 ) { mp_msg(MSGT_NETWORK,MSGL_ERR,"Read failed\n"); http_free( http_hdr ); @@ -794,7 +794,7 @@ nop_streaming_read( int fd, char *buffer, int size, streaming_ctrl_t *stream_ctr if( len