zenilib: zenilib/jni/external/sdl_net/chat.h File Reference

zenilib 0.5.3.0

- Main Page
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Macros
chat.h File Reference

Go to the source code of this file.

## Macros

#define | CHAT_ADD 1 /* 1+N+IP+Port+len+name */
#define | CHAT_ADD_HOST CHAT_ADD_SLOT+1
#define | CHAT_ADD_NAME CHAT_ADD_NLEN+1
#define | CHAT_ADD_NLEN CHAT_ADD_PORT+2
#define | CHAT_ADD_PORT CHAT_ADD_HOST+4
#define | CHAT_ADD_SLOT 1
#define | CHAT_BYE 255 /* 255 */
#define | CHAT_BYE_LEN 1
#define | CHAT_DEL 2 /* 2+N */
#define | CHAT_DEL_LEN CHAT_DEL_SLOT+1
#define | CHAT_DEL_SLOT 1
#define | CHAT_HELLO 0 /* 0+Port+len+name */
#define | CHAT_HELLO_NAME CHAT_HELLO_NLEN+1
#define | CHAT_HELLO_NLEN CHAT_HELLO_PORT+2
#define | CHAT_HELLO_PORT 1
#define | CHAT_MAXPEOPLE 10
#define | CHAT_PACKETSIZE 256 /* Maximum length of a message */
#define | CHAT_PORT MAKE_NUM('C','H','A','T')
#define | CHAT_PROMPT "> "
#define | CHAT_SCROLLBACK 512 /* Save 512 lines in scrollback */
#define | MAKE_NUM(A, B, C, D) (((A+B)<<8)|(C+D))

## Macro Definition Documentation

#define CHAT_ADD 1 /* 1+N+IP+Port+len+name */

Definition at line 40 of file chat.h.

Referenced by HandleServerData(), and SendNew().

#define CHAT_ADD_HOST CHAT_ADD_SLOT+1

Definition at line 42 of file chat.h.

Referenced by HandleServerData(), and SendNew().

#define CHAT_ADD_NAME CHAT_ADD_NLEN+1

Definition at line 45 of file chat.h.

Referenced by HandleServerData(), and SendNew().

#define CHAT_ADD_NLEN CHAT_ADD_PORT+2

Definition at line 44 of file chat.h.

Referenced by HandleServerData(), and SendNew().

#define CHAT_ADD_PORT CHAT_ADD_HOST+4

Definition at line 43 of file chat.h.

Referenced by HandleServerData(), and SendNew().

#define CHAT_ADD_SLOT 1

Definition at line 41 of file chat.h.

Referenced by HandleServerData(), and SendNew().

#define CHAT_BYE 255 /* 255 */

Definition at line 49 of file chat.h.

Referenced by HandleServer(), and HandleServerData().

#define CHAT_BYE_LEN 1

Definition at line 50 of file chat.h.

Referenced by HandleServerData().

#define CHAT_DEL 2 /* 2+N */

Definition at line 46 of file chat.h.

Referenced by HandleClient(), and HandleServerData().

#define CHAT_DEL_LEN CHAT_DEL_SLOT+1

Definition at line 48 of file chat.h.

Referenced by HandleClient(), and HandleServerData().

#define CHAT_DEL_SLOT 1

Definition at line 47 of file chat.h.

Referenced by HandleClient(), and HandleServerData().

#define CHAT_HELLO 0 /* 0+Port+len+name */

Definition at line 36 of file chat.h.

Referenced by HandleClient(), and SendHello().

#define CHAT_HELLO_NAME CHAT_HELLO_NLEN+1

Definition at line 39 of file chat.h.

Referenced by HandleClient(), and SendHello().

#define CHAT_HELLO_NLEN CHAT_HELLO_PORT+2

Definition at line 38 of file chat.h.

Referenced by SendHello().

#define CHAT_HELLO_PORT 1

Definition at line 37 of file chat.h.

Referenced by HandleClient(), and SendHello().

#define CHAT_MAXPEOPLE 10

Definition at line 53 of file chat.h.

Referenced by HandleClient(), HandleServer(), HandleServerData(), main(), SendBuf(), and SendHello().

#define CHAT_PACKETSIZE 256 /* Maximum length of a message */

Definition at line 30 of file chat.h.

Referenced by main().

#define CHAT_PORT MAKE_NUM('C','H','A','T')

Definition at line 33 of file chat.h.

Referenced by main().

#define CHAT_PROMPT "> "

Definition at line 29 of file chat.h.

Referenced by InitGUI(), SendBuf(), and SendKey().

#define CHAT_SCROLLBACK 512 /* Save 512 lines in scrollback */

Definition at line 28 of file chat.h.

Referenced by InitGUI().

#define MAKE_NUM | ( |  | A,
|  |  | B,
|  |  | C,
|  |  | D
| ) |  | (((A+B)<<8)|(C+D))

Definition at line 25 of file chat.h.