📄 datagramprotocol.h
字号:
/*0001*//*
/*0002./ * Copyright (c) 1999-2001 Sun Microsystems, Inc., 901 San Antonio Road,
/*0003./ * Palo Alto, CA 94303, U.S.A. All Rights Reserved.
/*0004./ *
/*0005./ * Sun Microsystems, Inc. has intellectual property rights relating
/*0006./ * to the technology embodied in this software. In particular, and
/*0007./ * without limitation, these intellectual property rights may include
/*0008./ * one or more U.S. patents, foreign patents, or pending
/*0009./ * applications. Sun, Sun Microsystems, the Sun logo, Java, KJava,
/*0010./ * and all Sun-based and Java-based marks are trademarks or
/*0011./ * registered trademarks of Sun Microsystems, Inc. in the United
/*0012./ * States and other countries.
/*0013./ *
/*0014./ * This software is distributed under licenses restricting its use,
/*0015./ * copying, distribution, and decompilation. No part of this
/*0016./ * software may be reproduced in any form by any means without prior
/*0017./ * written authorization of Sun and its licensors, if any.
/*0018./ *
/*0019./ * FEDERAL ACQUISITIONS: Commercial Software -- Government Users
/*0020./ * Subject to Standard License Terms and Conditions
/*0021./ */
/*0022*/
/*0023*//*=========================================================================
/*0024./ * SYSTEM: KVM
/*0025./ * SUBSYSTEM: networking (Generic Connection framework)
/*0026./ * FILE: datagramProtocol.h
/*0027./ * OVERVIEW: Prototypes for supporting using datagrams on the
/*0028./ * Generic Connection framework. If a target platform
/*0029./ * wants to support these networking
/*0030./ * capabilities, a platform-specific implementation of the
/*0031./ * functions below must be provided in the Vm<Port>/src directory,
/*0032./ * where <Port> is the name of your target platform
/*0033./ * (e.g., Win, Unix, Pilot). A default implementation is
/*0034./ * provided in VmExtra/src.
/*0035./ * AUTHOR: Nik Shaylor
/*0036./ *=======================================================================*/
/*0037*/
/*0038*/#ifndef _DATAGRAM_PROTOCOL_H_
/*0039*/#define _DATAGRAM_PROTOCOL_H_
/*0040*/
/*0041*//*=========================================================================
/*0042./ * Function prototypes for the native networking operations
/*0043./ *=======================================================================*/
/*0044*/
/*0045*/#ifndef __P
/*0046*/# ifdef __STDC__
/*0047*/# define __P(p) p
/*0048*/# else
/*0049*/# define __P(p) ()
/*0050*/# endif
/*0051*/#endif /* __P */
/*0052*/
/*0053*/#ifndef MAX_HOST_LENGTH
/*0054*/# define MAX_HOST_LENGTH 256
/*0055*/#endif /* MAX_HOST_LENGTH */
/*0056*/
/*0057*/extern int prim_com_sun_cldc_io_j2me_datagram_Protocol_open0 __P ((int, char**));
/*0058*/extern int prim_com_sun_cldc_io_j2me_datagram_Protocol_close __P ((int));
/*0059*/
/*0060*/extern int prim_com_sun_cldc_io_j2me_datagram_Protocol_send0 __P ((int, int, int, char*, int));
/*0061*/extern int prim_com_sun_cldc_io_j2me_datagram_Protocol_receive0 __P ((int, int*, int*, char*, int));
/*0062*/
/*0063*/extern void prim_com_sun_cldc_io_j2me_datagram_Protocol_getHostByAddr __P ((int, char*));
/*0064*/extern int prim_com_sun_cldc_io_j2me_datagram_Protocol_getIpNumber __P ((char*));
/*0065*/extern int prim_com_sun_cldc_io_j2me_datagram_Protocol_getNominalLength __P ((void));
/*0066*/extern int prim_com_sun_cldc_io_j2me_datagram_Protocol_getMaximumLength __P ((void));
/*0067*/
/*0068*/extern void prim_com_sun_cldc_io_j2me_datagram_Protocol_setNonBlocking __P ((int));
/*0069*/
/*0070*/#endif /* _DATAGRAM_PROTOCOL_H_ */
/*0071*/
/*0072*/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -