亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? linksocket.h

?? openmap java寫的開源數字地圖程序. 用applet實現,可以像google map 那樣放大縮小地圖.
?? H
字號:
/* ********************************************************************** *  * <copyright> *  *  BBN Technologies, a Verizon Company *  10 Moulton Street *  Cambridge, MA 02138 *  (617) 873-8000 *  *  Copyright (C) BBNT Solutions LLC. All rights reserved. *  * </copyright> * ********************************************************************** *  * $Source: /cvs/distapps/openmap/src/cserver/link/include/LinkSocket.h,v $ * $RCSfile: LinkSocket.h,v $ * $Revision: 1.2 $ * $Date: 2004/01/26 19:07:09 $ * $Author: dietrick $ *  * ********************************************************************** */#ifndef LINKSOCKET_H#define LINKSOCKET_H#include "toolLib/sockets.h"#include <limits.h>/** * The link socket. * * @param *host The host. * @param mainsd The main socket descriptor required to accept connections. * @param sd The socket descriptor returned when the connection is accepted. * @param port The port on which the socket will listen. * @param error Any errors. * @param *writebuffer * @param maxbuffer The maximum size of the buffer. * @param currentbuffer The pointer to the buffer, from where data needs to be sent. * @param isBuffered Boolean, indicating if the socket is buffered or not.  By default, buffering is on.  Write functions will attempt to write the entire data into the buffer.  If it's not successful, write functions will flush the buffer first and write data directly to the socket.  If successful, the data will remain in the buffer until the flush is called.  This should be set to LINK_TRUE if unbuffered write functions are used.  Set it to LINK_FALSE if buffered writes are used.  WARNING: The buffered versions are deprecated, and will be removed in a future release. */struct LinkSocket{    char *host;    int mainsd; /*main socket descriptor required to accept connections*/    int sd;  /*socket descriptor returned, when connection is accepted*/    int port;  /*number on which socket will listen to */    int error;  /*error if any*/    /*      Buffering within the socket.        */    char *writebuffer;    int maxbuffer; /*Maximum size of the buffer*/    int currentbuffer; /*pointer to the buffer, from where data needs to be sent.*/    int isBuffered; /*Boolean, indicating if socket is buffered or not*/};typedef struct LinkSocket LinkSocket;/*  Note: By Default Buffering is on.  Write functions  will attempt to write entire data into the buffer.  ..if not succesful, write functions would flush the buffer first and  write data directly to the socket.  ..if successful, data would remain untill flush is called.    *//** * Initializes the internet domain socket as a server. * * @param *socket The socket to initialize. * @returns -1 if there was a memory allocation error. */int InitSocket(LinkSocket *socket);/** * Check to see if the error flag is set. * * @param *socket The link socket. */int CheckSocket(LinkSocket* socket);/** * Frees the link socket. * * @param *socket The link socket. */void FreeSocket(LinkSocket *socket);/** * Functions for interconversion between integer and char so that they * can be sent and read over the socket. * * @param *toBuffer * @param ivalue */void IntegerToBytes(char *toBuffer, int ivalue);/** * Functions for interconversion between integer and char so that they * can be sent and read over the socket. * * @param *ptrInteger * @param *fromBuffer */void BytesToInteger(int *ptrInteger, char *fromBuffer);/*  Note:- User should allocate the required memory and pass pointers.          *//** * Reads an integer off the socket in a user-provided buffer. * * @param *socket The link socket. * @param *ptrIntegerBuffer The integer buffer to read into. * @returns OK if successful. */int ReadInteger(LinkSocket *socket, int *ptrIntegerBuffer);/** * Writes an integer to the socket. * * @param *socket The link socket. * @param iValue The integer to write to the socket. * @returns OK if successful, NOK if failure. */int WriteInteger(LinkSocket *socket, int iValue);/** * Writes an integer to a buffer. <b>DEPRECATED</b> * * <b>Deprecated</b>: Use WriteInteger(). * * @param *tobuffer Buffer to write to. * @param iValue Integer to write to the buffer. */int BufferedWriteInteger(char *tobuffer,int iValue);/** * Reads Unicode characters from the socket and stores them in a buffer * as ASCII characters. * * Returns OK and sets the socket's error flag to LINK_FALSE if it  * successfully wrote nchartoread.  Otherwise, it returns NOK and * sets the socket's error flag to LINK_TRUE.  This function blocks  * until it reads nchartoread characters. * @param *socket The link socket. * @param *ptrBuffer Buffer to store the characters in. * @param nchartoread Number of characters to read. * @returns -1 if there was a memory allocation error. */int ReadUnicodeChars(LinkSocket *socket, char *ptrBuffer, int nchartoread);/** * Writes ASCII characters in buffer as Unicode characters to the socket. *  * Returns OK and sets the socket's error flag to LINK_FALSE if it successfully * wrote nchartowrite characters.  Otherwise, it returns NOK and sets the * socket's error flag to LINK_TRUE.  This function blocks util it writes * nchartowrite characters. * @param *socket The link socket. * @param *ptrBuffer The buffer. * @param nchartowrite The number of characters to write. * @returns -1 if there was a memory allocation error. */int WriteUnicodeChars(LinkSocket *socket, char *ptrBuffer, int nchartowrite);/** * Writes Unicode characters to a buffer instead of the socket.<b>DEPRECATED</b> * * <b>Deprecated</b>: Use WriteUnicodeChars(). * * @param *toBuffer Buffer to write to. * @param *fromBuffer Buffer to read from. * @param nchartowrite Number of characters to write. */int BufferedWriteUnicodeChars(char *toBuffer, char *fromBuffer, int nchartowrite);/** * Reads nchartoread ASCII characters from the socket into a buffer. *  * Returns OK and sets the socket's error flag to LINK_FALSE if it successfully * read nchartoread characters.  Otherwise, it returns NOK and sets the  * socket's error flag to LINK_TRUE.  This function blocks until it reads * nchartoread characters. * @param *socket The link socket. * @param *ptrBuffer Buffer to read into. * @param nchartoread Number of characters o read. */int ReadChars(LinkSocket *socket, char *ptrBuffer, int nchartoread);/** * Writes nchartowrite characters from a buffer to the socket. * * Returns OK and sets the socket's error flag to LINK_FALSE if it * successfully wrote nchartowrite characters.  Otherwise, it will * return NOK and set the socket's error flag to LINK_TRUE.  This * function blocks util it writes nchartowrite characters. * @param *socket The link socket. * @param *fromBuffer The buffer to read from. * @param nchartowrite The number of characters to write. */int WriteChars(LinkSocket *socket, char *fromBuffer, int nchartowrite);/** * Writes characters to a buffer instead of the socket. <b>DEPRECATED</b> * * <b>Deprecated</b>: Use WriteChars(). * * @param *toBuffer Buffer to write to. * @param *fromBuffer Buffer to read from. * @param nchartowrite Number of characters to write. */int BufferedWriteChars(char *toBuffer, char *fromBuffer, int nchartowrite);/** * Reads a 4-byte float value from a socket into a user-provided buffer. *  * The float value read in will be typecasted into a double. * @param *socket The link socket. * @param *ptrDouble The float value to be read in. * @returns OK if successful, NOK if it fails. */int ReadFloat(LinkSocket *socket, double *ptrDouble);/** * Writes a float value to the socket. * * @param *socket The link socket. * @param fvalue The float value to write. * @returns OK if successful, NOK if it fails. */int WriteFloat(LinkSocket *socket, float fvalue);/** * Writes a float to a buffer instead of a socket. <b>DEPRECATED</b> * * <b>Deprecated</b>: Use WriteFloat(). * * @param *toBuffer Buffer to write to. * @param fvalue The float value to write. */int BufferedWriteFloat(char *toBuffer, float fvalue);/** * Flushes the socket's write buffer. * * @param *socket The link socket. * @returns OK if it successfully wrote the entire buffer to the socket.  Returns NOK if it fails. */int Socketflush(LinkSocket *socket);/** * Copies all from the parent to the child except sd, since it is new for * every child. * * @param *parent The parent link socket. * @param *child The child link socket. * @returns -1 if there was a memory allocation error. */int SocketCopyParentToChild(LinkSocket *parent, LinkSocket *child);/** * Translates an English Unicode string to ASCII by stripping the first * byte from each two-byte pair per character.  This is NOT a comprehensive * solution for translating from Unicode to ASCII. * * @param unicodechar[] The Unicode string to translate. * @param length The length of the Unicode string, in characters * @returns The translated ASCII string. */char *EnglishUnicodeToASCII(char unicodechar[], int length);/** * Translates an ASCII string to Unicode by prefixing each ASCII character * byte with 0x0; note that this does not work for any other language than * English. * * @param cchar[] The ASCII string to translate. * @returns The translated Unicode string. */char *ASCIIToEnglishUnicode(char cchar[]);#endif/** * Compares two Unicode strings.  Ordinarily, strcmp() would be used to * handle the comparison of two strings, but it fails when faced with  * the first character of an English ASCII character in Unicode (\0). * This is not as full-featured as strcmp(). * * @param *s1 The first string to compare. * @param *s2 The second string to compare. * @param length The length of the strings.  (You need to know this ahead of time.) * @returns 0 if the strings are equal. */int unicodecmp(const char *s1, const char *s2, int length);

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲免费观看视频| 日韩一区二区电影在线| 国产乱子伦视频一区二区三区| 香蕉av福利精品导航| 亚洲另类在线视频| 一区二区三区91| 伊人色综合久久天天人手人婷| 亚洲欧美另类在线| 亚洲国产成人tv| 天天影视涩香欲综合网| 五月激情六月综合| 免费人成网站在线观看欧美高清| 日本视频免费一区| 国产一区美女在线| fc2成人免费人成在线观看播放| av亚洲精华国产精华| 97精品视频在线观看自产线路二| 99v久久综合狠狠综合久久| 色欧美片视频在线观看| 欧美日韩第一区日日骚| 精品国一区二区三区| 国产人妖乱国产精品人妖| 亚洲丝袜美腿综合| 日韩高清一级片| 国产伦精品一区二区三区视频青涩| 国产成人综合在线播放| 一本久久a久久免费精品不卡| 精品视频资源站| 久久久久久影视| 亚洲精品成人天堂一二三| 日本中文在线一区| zzijzzij亚洲日本少妇熟睡| 欧美性猛交xxxx黑人交| 欧美精品一区视频| 亚洲一区二区三区四区五区中文| 免费精品视频最新在线| 成人av资源下载| 日韩网站在线看片你懂的| 国产精品久久久久影视| 亚瑟在线精品视频| 成人av集中营| 精品sm捆绑视频| 亚洲国产一区二区三区 | 国产成人在线网站| 91色.com| 2023国产精华国产精品| 亚洲无线码一区二区三区| 国产一区二区伦理片| 欧美日韩精品一二三区| 中文字幕永久在线不卡| 捆绑紧缚一区二区三区视频| 欧美在线观看视频一区二区 | 国产欧美日韩三区| 日日嗨av一区二区三区四区| jizz一区二区| 国产日韩欧美一区二区三区乱码 | 久久久久99精品一区| 亚洲1区2区3区4区| 91蜜桃免费观看视频| 国产亲近乱来精品视频 | 国产成都精品91一区二区三| 88在线观看91蜜桃国自产| 亚洲欧美日韩成人高清在线一区| 国产高清亚洲一区| 久久亚洲精华国产精华液| 日韩中文字幕区一区有砖一区| 色综合久久九月婷婷色综合| 国产精品短视频| 国产91高潮流白浆在线麻豆| 久久蜜桃一区二区| 国产最新精品精品你懂的| 欧美一区二区日韩| 美脚の诱脚舐め脚责91| 5566中文字幕一区二区电影| 亚洲高清免费观看| 欧美唯美清纯偷拍| 亚洲国产美女搞黄色| 日本道精品一区二区三区| 亚洲欧美日韩国产中文在线| 成人av在线资源网| 亚洲日韩欧美一区二区在线| 成人黄色在线视频| 亚洲丝袜精品丝袜在线| 在线观看91精品国产入口| 亚洲香肠在线观看| 欧美亚洲综合在线| 日韩中文字幕1| 精品国产乱码久久久久久闺蜜| 毛片av中文字幕一区二区| 精品sm捆绑视频| www.爱久久.com| 亚洲综合网站在线观看| 在线成人午夜影院| 国内外成人在线| 国产精品久久久久久一区二区三区 | 一区二区三区在线播| 欧美午夜电影网| 狠狠狠色丁香婷婷综合激情| 久久青草国产手机看片福利盒子| 丁香婷婷深情五月亚洲| 一区二区三区中文在线观看| 欧美一区二区三区电影| 国产在线精品一区二区夜色| 国产精品国产a| 欧美精品亚洲一区二区在线播放| 国产综合色在线视频区| 亚洲日本在线观看| 欧美一级黄色片| 成人一级视频在线观看| 亚洲国产视频a| 久久嫩草精品久久久精品一| 91麻豆精品在线观看| 久久精品久久久精品美女| 国产精品久久久久精k8 | 精品无人码麻豆乱码1区2区| 国产精品美女久久久久久久网站| 欧美吞精做爰啪啪高潮| 国产一区二区三区蝌蚪| 亚洲午夜在线观看视频在线| 亚洲国产精品二十页| 717成人午夜免费福利电影| 成人av网站在线观看免费| 日韩va欧美va亚洲va久久| 成人免费小视频| 久久婷婷成人综合色| 911国产精品| 色域天天综合网| 国产99久久精品| 久久99精品视频| 亚洲成av人片在线| 亚洲免费伊人电影| 久久久高清一区二区三区| 91精品国产综合久久福利软件| 色综合久久99| 99精品欧美一区二区三区小说| 精品一区二区三区免费观看 | 国产精品无人区| 精品国产一区二区三区av性色| 欧美色倩网站大全免费| 97久久精品人人做人人爽50路| 国产成a人无v码亚洲福利| 精品一二三四在线| 久久精品国产一区二区三 | 日韩视频免费观看高清完整版在线观看 | 欧美精品一区二区三区一线天视频| 色视频一区二区| 色综合久久精品| 一本到高清视频免费精品| 不卡一区二区中文字幕| 国产v日产∨综合v精品视频| 国产一区二区中文字幕| 久久精品国产亚洲aⅴ| 奇米色一区二区三区四区| 天堂va蜜桃一区二区三区漫画版| 亚洲一区二区三区国产| 亚洲一区二区三区小说| 亚洲成人免费观看| 午夜精品久久久久久久久| 亚洲福利视频一区二区| 亚洲国产精品嫩草影院| 亚洲午夜激情网站| 性做久久久久久| 日本sm残虐另类| 精品一区二区在线免费观看| 国内外精品视频| 国产91在线看| 在线精品视频一区二区| 欧美性大战久久| 欧美电影一区二区| 久久一日本道色综合| 中文字幕不卡三区| 亚洲一区二区三区在线| 日本伊人午夜精品| 国产乱码精品一品二品| 岛国精品一区二区| 欧美三级欧美一级| 精品国产露脸精彩对白| 综合久久给合久久狠狠狠97色| 亚洲一区免费观看| 经典三级视频一区| 91蜜桃婷婷狠狠久久综合9色| 欧美日韩成人综合在线一区二区| 日韩欧美黄色影院| 综合久久久久久久| 日本aⅴ亚洲精品中文乱码| 国产精品一区二区不卡| 日本道免费精品一区二区三区| 欧美一级专区免费大片| 国产精品久久久久久一区二区三区 | 日韩va欧美va亚洲va久久| 国产成人综合亚洲网站| 欧美日韩国产免费| 久久九九久久九九| 亚洲.国产.中文慕字在线| 国产精品白丝av| 欧美日韩精品三区| 国产精品久久99| 久久机这里只有精品| 欧洲激情一区二区| 欧美国产精品专区|