Advertisement
Guest User

Untitled

a guest
Mar 31st, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. int handleclient(struct client *p, struct client *top) {
  2. char buf[256];
  3. char outbuf[512];
  4. int check = 1;
  5. int len = read(p->fd, buf, sizeof(buf) - 1);
  6. while(check){
  7. if(buf[0] == 'a' || buf[0] == 'p'){
  8. check = 0;
  9. }else{
  10. len = read(p->fd, buf, sizeof(buf) - 1);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement