root/src/dps8/udplib.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  * udplib.h: IMP/TIP Modem and Host Interface socket routines using UDP
   3  *
   4  * vim: filetype=c:tabstop=4:ai:expandtab
   5  * SPDX-License-Identifier: MIT
   6  * scspell-id: 1d277b36-f630-11ec-8beb-80ee73e9b8e7
   7  *
   8  * ---------------------------------------------------------------------------
   9  *
  10  * Copyright (c) 2013 Robert Armstrong <bob@jfcl.com>
  11  * Copyright (c) 2015-2016 Charles Anthony
  12  * Copyright (c) 2021-2023 The DPS8M Development Team
  13  *
  14  * Permission is hereby granted, free of charge, to any person obtaining a
  15  * copy of this software and associated documentation files (the "Software"),
  16  * to deal in the Software without restriction, including without limitation
  17  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  18  * and/or sell copies of the Software, and to permit persons to whom the
  19  * Software is furnished to do so, subject to the following conditions:
  20  *
  21  * The above copyright notice and this permission notice shall be included
  22  * in all copies or substantial portions of the Software.
  23  *
  24  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  25  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  26  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  27  * IN NO EVENT SHALL ROBERT ARMSTRONG BE LIABLE FOR ANY CLAIM, DAMAGES OR
  28  * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
  29  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  30  * OTHER DEALINGS IN THE SOFTWARE.
  31  *
  32  * Except as contained in this notice, the name of Robert Armstrong shall
  33  * not be used in advertising or otherwise to promote the sale, use or
  34  * other dealings in this Software without prior written authorization from
  35  * Robert Armstrong.
  36  *
  37  * ---------------------------------------------------------------------------
  38  */
  39 
  40 #ifdef WITH_ABSI_DEV
  41 # define NOLINK      (-1)
  42 # define PFLG_FINAL 00001
  43 int udp_create  (const char * premote, int32_t * plink);
  44 int udp_release (int32_t link);
  45 int udp_send    (int32_t link, uint16_t * pdata, uint16_t count, uint16_t flags);
  46 int udp_receive (int32_t link, uint16_t * pdata, uint16_t maxbufg);
  47 #endif /* ifdef WITH_ABSI_DEV */

/* [previous][next][first][last][top][bottom][index][help] */