udpcli.c
来自「基于nucleus操作系统的GPRS无线数据传输终端全套源文件。包括支持ARM7」· C语言 代码 · 共 43 行
C
43 行
/*************************************************************************/
/* */
/* Copyright (c) 1999 Accelerated Technology, Inc. */
/* */
/* PROPRIETARY RIGHTS of Accelerated Technology are involved in the */
/* subject matter of this material. All manufacturing, reproduction, */
/* use, and sales rights pertaining to this subject matter are governed */
/* by the license agreement. The recipient of this software implicitly */
/* accepts the terms of the license. */
/* */
/*************************************************************************/
/*****************************************************************************/
/* */
/* FILE NAME */
/* */
/* UDPCLI.C */
/* */
/* */
/* DESCRIPTION */
/* */
/* This is a simple example of a UDP client. It is an echo client, */
/* that is, data is transmitted and the client waits for the echo */
/* to come back from the server. This program demonstrates the use of */
/* Nucleus NET over a PPP connection. */
/* */
/*****************************************************************************/
#include "net\inc\externs.h"
#include "plus\nucleus.h"
#include "net\inc\socketd.h" /* socket interface structures */
#include "net\inc\tcpdefs.h"
#include "ppp\inc\ppp.h" /* ppp interface */
/* Size of data to TX and RX. */
#define BUFFER_SIZE 100
/* Number of times to TX and RX the data. */
#define NUM_LOOPS 50
/* These must be filled in. They are specific to your ISP and account. */
/*
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?