?? socketops.h
字號:
/*
* Multiplatform Async Network Library
* Copyright (c) 2007 Burlex
*
* SocketOps - wrapper for any specific socket operations that may be platform-dependant.
*
*/
#ifndef SOCKET_OPS_H
#define SOCKET_OPS_H
namespace SocketOps
{
// Create file descriptor for socket i/o operations.
SOCKET CreateTCPFileDescriptor();
// Disable blocking send/recv calls.
bool Nonblocking(SOCKET fd);
// Enable blocking send/recv calls.
bool Blocking(SOCKET fd);
// Disable nagle buffering algorithm
bool DisableBuffering(SOCKET fd);
// Enables nagle buffering algorithm
bool EnableBuffering(SOCKET fd);
// Set internal buffer size to socket.
bool SetRecvBufferSize(SOCKET fd, uint32 size);
// Set internal buffer size to socket.
bool SetSendBufferSize(SOCKET fd, uint32 size);
// Closes socket completely.
void CloseSocket(SOCKET fd);
// Sets SO_REUSEADDR
void ReuseAddr(SOCKET fd);
};
#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -