⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 udp.h

📁 mgcp协议源代码。支持多种编码:g711
💻 H
字号:
/*----------------------------------------------------------------------*\  udp.h                                            Version:     1.0   10/97               1.1   4/99 - tweaked for use in tpjack software               1.2   6/10/99 - changed the license to LGPL    This module provides functions to use that read and write UDP  packets to and from the network.    Copyright (c) 1999 Quicknet Technologies, Inc.  Written by Greg Herlein <gherlein@quicknet.net> - donated to   Quicknet 6/10/99 by Herlein Engineering. * This is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License (LGPL) as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * * This software is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU * General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the * Free Software Foundation, Inc., 59 Temple Place - Suite 330, * Boston, MA 02111-1307, USA.  It is also available online at  * http://www.gnu.org/copyleft/lesser.html ----------------------------------------------------------------------*/#ifndef __UDP_H#define __UDP_H/*----------------------------< Defines >-------------------------------*//*----------------------------< Includes >------------------------------*//*---------------------------< Definitions >----------------------------*//*--------------------------< Declarations >----------------------------*/int GetSendSocket(char* szIP, int nPort);int GetRecvSocket(int nPort);int CloseSocket(int nSock);int ReadUDP(int nSock,char* pBuf,int nLen);int IdentifyPeer(int nSock);int GetNameFromAddr(char* szIP, char* szName, int nLen);/*----------------------------------------------------------------------*/#endif /* __UDP_H *//*-------------------------------< End >--------------------------------*/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -