Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int handleclient(struct client *p, struct client *top) {
- char buf[256];
- char outbuf[512];
- int check = 1;
- int len = read(p->fd, buf, sizeof(buf) - 1);
- while(check){
- if(buf[0] == 'a' || buf[0] == 'p'){
- check = 0;
- }else{
- len = read(p->fd, buf, sizeof(buf) - 1);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement