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

📄 socketprotocol.h

📁 This is a java virtual machine implement in c
💻 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:      socketProtocol.h
/*0027./ * OVERVIEW:  Prototypes for supporting using sockets, serversockets
/*0028./ *            on the Generic Connection framework.
/*0029./ *            If a target platform 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 _SOCKET_PROTOCOL_H_
/*0039*/#define _SOCKET_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*/extern int  prim_com_sun_cldc_io_j2me_socket_Protocol_open0 __P ((char*, int, char**));
/*0054*/extern int  prim_com_sun_cldc_io_j2me_socket_Protocol_read0 __P ((int, char*, int));
/*0055*/extern int  prim_com_sun_cldc_io_j2me_socket_Protocol_available0 __P ((int));
/*0056*/extern int  prim_com_sun_cldc_io_j2me_socket_Protocol_write0 __P ((int, char*, int));
/*0057*/extern int  prim_com_sun_cldc_io_j2me_socket_Protocol_close0 __P ((int));
/*0058*/
/*0059*/extern int  prim_com_sun_cldc_io_j2me_socket_Protocol_getIpNumber __P ((char*));
/*0060*/extern void prim_com_sun_cldc_io_j2me_socket_Protocol_setNonBlocking __P ((int));
/*0061*/
/*0062*/extern int  prim_com_sun_cldc_io_j2me_serversocket_Protocol_open0 __P ((int, char**));
/*0063*/extern int  prim_com_sun_cldc_io_j2me_serversocket_Protocol_accept __P ((int));
/*0064*/extern int  prim_com_sun_cldc_io_j2me_serversocket_Protocol_close __P ((int));
/*0065*/
/*0066*/extern void networkInit __P ((void));
/*0067*/extern int  netError __P ((void));
/*0068*/
/*0069*/#endif /* _SOCKET_PROTOCOL_H_ */
/*0070*/
/*0071*/

⌨️ 快捷键说明

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