transport.c
上传用户:lctgjx
上传日期:2022-06-04
资源大小:8887k
文件大小:3k
源码类别:

流媒体/Mpeg4/MP4

开发平台:

Visual C++

  1. /*
  2. Copyright 1993, 1994, 1998  The Open Group
  3. Permission to use, copy, modify, distribute, and sell this software and its
  4. documentation for any purpose is hereby granted without fee, provided that
  5. the above copyright notice appear in all copies and that both that
  6. copyright notice and this permission notice appear in supporting
  7. documentation.
  8. The above copyright notice and this permission notice shall be included
  9. in all copies or substantial portions of the Software.
  10. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  11. OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  12. MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  13. IN NO EVENT SHALL THE OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR
  14. OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  15. ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  16. OTHER DEALINGS IN THE SOFTWARE.
  17. Except as contained in this notice, the name of The Open Group shall
  18. not be used in advertising or otherwise to promote the sale, use or
  19. other dealings in this Software without prior written authorization
  20. from The Open Group.
  21.  * Copyright 1993, 1994 NCR Corporation - Dayton, Ohio, USA
  22.  *
  23.  * All Rights Reserved
  24.  *
  25.  * Permission to use, copy, modify, and distribute this software and its
  26.  * documentation for any purpose and without fee is hereby granted, provided
  27.  * that the above copyright notice appear in all copies and that both that
  28.  * copyright notice and this permission notice appear in supporting
  29.  * documentation, and that the name NCR not be used in advertising
  30.  * or publicity pertaining to distribution of the software without specific,
  31.  * written prior permission.  NCR makes no representations about the
  32.  * suitability of this software for any purpose.  It is provided "as is"
  33.  * without express or implied warranty.
  34.  *
  35.  * NCR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  36.  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN
  37.  * NO EVENT SHALL NCR BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  38.  * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
  39.  * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
  40.  * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
  41.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  42.  */
  43. #ifdef XSERV_t
  44. #include "os.h"
  45. #else
  46. #include <stdlib.h>
  47. #define xalloc(_size) malloc(_size)
  48. #define xcalloc(_num,_size) calloc(_num,_size)
  49. #define xrealloc(_ptr,_size) realloc(_ptr,_size)
  50. #define xfree(_ptr) free(_ptr)
  51. #endif
  52. #include "Xtransint.h"
  53. #ifdef LOCALCONN
  54. #include "Xtranslcl.c"
  55. #endif
  56. #if defined(TCPCONN) || defined(UNIXCONN)
  57. #include "Xtranssock.c"
  58. #endif
  59. #ifdef STREAMSCONN
  60. #include "Xtranstli.c"
  61. #endif
  62. #include "Xtrans.c"
  63. #include "Xtransutil.c"