aboutsummaryrefslogtreecommitdiff
path: root/net.h
blob: 11475b7addb3ca564082e24af933083ee7b5cc03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#pragma once

#include "global.h"


bool net_send_raw_text(int fd,const char *text,i64 len);
bool net_send_ok(int fd,const char *tag);
bool net_send_number(int fd,const char *tag,i64 number);
bool net_send_error(int fd,const char *tag,const char *msg);
bool net_send_name(int fd,const char *tag,const char *name);
bool net_send_list(int fd,const char *tag,i64 count,const char **list);
bool net_send_pong(int fd,const char *tag);