JAPAn
Just Another Parity Analyzer
Loading...
Searching...
No Matches
cfSock.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  request
 

Macros

#define SERVER_PORT_NUM   5001 /* server's port number for bind() */
 
#define SERVER_WORK_PRIORITY   125 /* priority of server's work task */
 
#define SERVER_STACK_SIZE   10000 /* stack size of server's work task */
 
#define SERVER_MAX_CONNECTIONS   4 /* max clients connected at a time */
 
#define REQUEST_MSG_SIZE   1024 /* max size of request message */
 
#define REPLY_MSG_SIZE   1024 /* max size of reply message */
 
#define SOCK_ERROR   (-1)
 
#define SOCK_OK   (0)
 
#define MAGIC_COOKIE   0xff8b344f /* value = -7654321 */
 
#define SOCK_ADDR_SIZE   sizeof(struct sockaddr_in))
 

Macro Definition Documentation

◆ MAGIC_COOKIE

#define MAGIC_COOKIE   0xff8b344f /* value = -7654321 */

Definition at line 18 of file cfSock.h.

Referenced by buildRequestInteractive(), cfSockCommand(), and GreenSockCommand().

◆ REPLY_MSG_SIZE

#define REPLY_MSG_SIZE   1024 /* max size of reply message */

Definition at line 10 of file cfSock.h.

◆ REQUEST_MSG_SIZE

#define REQUEST_MSG_SIZE   1024 /* max size of request message */

Definition at line 9 of file cfSock.h.

Referenced by buildRequestInteractive(), cfSockCommand(), and GreenSockCommand().

◆ SERVER_MAX_CONNECTIONS

#define SERVER_MAX_CONNECTIONS   4 /* max clients connected at a time */

Definition at line 7 of file cfSock.h.

◆ SERVER_PORT_NUM

#define SERVER_PORT_NUM   5001 /* server's port number for bind() */

Definition at line 4 of file cfSock.h.

Referenced by cfSockCliOpen().

◆ SERVER_STACK_SIZE

#define SERVER_STACK_SIZE   10000 /* stack size of server's work task */

Definition at line 6 of file cfSock.h.

◆ SERVER_WORK_PRIORITY

#define SERVER_WORK_PRIORITY   125 /* priority of server's work task */

Definition at line 5 of file cfSock.h.

◆ SOCK_ADDR_SIZE

#define SOCK_ADDR_SIZE   sizeof(struct sockaddr_in))

Definition at line 19 of file cfSock.h.

◆ SOCK_ERROR

#define SOCK_ERROR   (-1)

Definition at line 13 of file cfSock.h.

Referenced by cfSockCliOpen(), and cfSockCliSend().

◆ SOCK_OK