Changeset 3457 for neercs/trunk/src/attach.c
- Timestamp:
- May 14, 2009, 6:16:41 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
neercs/trunk/src/attach.c
r3456 r3457 177 177 int request_attach(struct screen_list* screen_list) 178 178 { 179 char buf[ 32];179 char buf[41]; 180 180 int bytes; 181 181 182 bytes = snprintf(buf, sizeof(buf)-1, "ATTACH %10d %c%10d",182 bytes = snprintf(buf, sizeof(buf)-1, "ATTACH %10d %10d %10d", 183 183 caca_get_canvas_width(screen_list->cv), 184 ' ',185 caca_get_canvas_height(screen_list->cv));184 caca_get_canvas_height(screen_list->cv), 185 screen_list->delay); 186 186 buf[bytes] = '\0'; 187 187 debug("Requesting attach: %s", buf); … … 445 445 } 446 446 447 int send_delay(struct screen_list* screen_list) 448 { 449 char buf[18]; 450 int bytes; 451 bytes = snprintf(buf, sizeof(buf)-1, "DELAY %10d", screen_list->delay); 452 buf[bytes] = '\0'; 453 return write(screen_list->socket[SOCK_SERVER], buf, strlen(buf)) <= 0; 454 }
Note: See TracChangeset
for help on using the changeset viewer.