📄 socket.h
字号:
/***************************************************************************//* *//* Copyright (c) 2005, 2006 2X Software Ltd, http://www.2X.com., NoMachine *//* *//* NXPROXY, NX protocol compression and NX extensions to this software *//* are copyright of Nomachine. Redistribution and use of the present *//* software is allowed according to terms specified in the file LICENSE *//* which comes in the source distribution. *//* *//* NX and NoMachine are trademarks of Medialogic S.p.A. *//* *//* 2X is a trademark of 2X Software Ltd. *//* *//* All rights reserved. *//* *//***************************************************************************/#ifndef Socket_H#define Socket_H//// Set socket options.//int SetReuseAddress(int fd);int SetNonBlocking(int fd, int value);int SetLingerTimeout(int fd, int timeout);int SetSendBuffer(int fd, int size);int SetReceiveBuffer(int fd, int size);int SetNoDelay(int fd, int value);int SetKeepAlive(int fd);int SetLowDelay(int fd);int SetCloseOnExec(int fd);//// Get kernel support level.//int GetKernelStep();//// Get socket info.//int GetBytesReadable(int fd);int GetBytesWritable(int fd);int GetBytesQueued(int fd);//// Query Internet address.//int GetHostAddress(const char *name);#endif /* Socket_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -