# HG changeset patch # User gpoirier # Date 1169412022 0 # Node ID 3fa40cd9fdae7159acf5343dab9ce296ef4ab923 # Parent 0ab2495a18150c9532aa4b3bdf573a6d8a0c8584 BeOS cleanup Patch by Ramiro Polla % ramiro A lisha P ufsc P br % Original thread: date: Jan 20, 2007 8:56 PM subject: [Ffmpeg-devel] [PATCH] [RFC] change socket read and write functions diff -r 0ab2495a1815 -r 3fa40cd9fdae tcp.c --- a/tcp.c Sun Jan 21 20:15:55 2007 +0000 +++ b/tcp.c Sun Jan 21 20:40:22 2007 +0000 @@ -142,11 +142,7 @@ tv.tv_usec = 100 * 1000; ret = select(fd_max + 1, &rfds, NULL, NULL, &tv); if (ret > 0 && FD_ISSET(s->fd, &rfds)) { -#ifdef __BEOS__ len = recv(s->fd, buf, size, 0); -#else - len = read(s->fd, buf, size); -#endif if (len < 0) { if (errno != EINTR && errno != EAGAIN) #ifdef __BEOS__ @@ -179,11 +175,7 @@ tv.tv_usec = 100 * 1000; ret = select(fd_max + 1, NULL, &wfds, NULL, &tv); if (ret > 0 && FD_ISSET(s->fd, &wfds)) { -#ifdef __BEOS__ len = send(s->fd, buf, size, 0); -#else - len = write(s->fd, buf, size); -#endif if (len < 0) { if (errno != EINTR && errno != EAGAIN) { #ifdef __BEOS__