diff options
author | thing 1 <thing1@seacrossedlovers.xyz> | 2024-12-10 08:35:59 +0000 |
---|---|---|
committer | thing 1 <thing1@seacrossedlovers.xyz> | 2024-12-10 08:35:59 +0000 |
commit | 4dd9290648ccb0d5fa19df956f970dda9afd9db7 (patch) | |
tree | 6e3927fca87daaf925d4630d263442a1b4ea68ea /talk.h |
Diffstat (limited to 'talk.h')
-rw-r--r-- | talk.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -0,0 +1,19 @@ +typedef enum packettype { + MSG = 0, + GET = 1, + NEWUSER = 2, + USERMAKEERROR = 3, + UNKNOWNCMD = 4, + PASSAUTHFAIL = 5, + NOSUCHUSER = 6, + NEVERMSGED = 7, +} packettype; + +typedef struct packet { + packettype type; + char username[30]; + char password[30]; + char recipient[30]; + int msglen; + char *msg; +} packet; |