Allow playback of dnxhd files, as produced by FFmpeg regression test.
[mplayer/glamo.git] / stream / tcp.h
blob5ff193c66de6b7c67d3f119c12f3d87082800fd8
1 /*
2 * network helpers for TCP connections
3 * (originally borrowed from network.c,
4 * by Bertrand BAUDET <bertrand_baudet@yahoo.com>)
6 * Copyright (C) 2001 Bertrand BAUDET, 2006 Benjamin Zores
8 * This file is part of MPlayer.
10 * MPlayer is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
15 * MPlayer is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
20 * You should have received a copy of the GNU General Public License along
21 * with MPlayer; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
25 #ifndef MPLAYER_TCP_H
26 #define MPLAYER_TCP_H
28 /* Connect to a server using a TCP connection */
29 int connect2Server (char *host, int port, int verb);
31 #define TCP_ERROR_TIMEOUT -3 /* connection timeout */
32 #define TCP_ERROR_FATAL -2 /* unable to resolve name */
33 #define TCP_ERROR_PORT -1 /* unable to connect to a particular port */
35 #endif /* MPLAYER_TCP_H */