forked from scott/threaded_network_chat
20 lines
444 B
C++
20 lines
444 B
C++
#ifndef CHAT_H
|
|
#define CHAT_H
|
|
|
|
#include <string>
|
|
|
|
void *await_client(void *a);
|
|
void clear_rows(int s, int e);
|
|
int count_lines(std::string p);
|
|
int file_disp(std::string p, int lnstart, int lncount = 10);
|
|
int log_append(std::string p, std::string ln);
|
|
int log_linect(std::string p);
|
|
void client_start(void);
|
|
void client_stop(void);
|
|
void *poll_client(void);
|
|
void *poll_server(void *a);
|
|
void server_start(int port);
|
|
void server_stop(void);
|
|
|
|
#endif
|