Changeset 720
- Timestamp:
- 02/25/08 07:55:36 (9 months ago)
- Files:
-
- branches/binary/server/memcached.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/binary/server/memcached.c
r719 r720 295 295 } 296 296 297 static char *prot_text(const int prot) { 298 char *rv="unknown"; 299 switch(prot) { 300 case ascii_prot: 301 rv="ascii"; 302 break; 303 case binary_prot: 304 rv="binary"; 305 break; 306 case ascii_udp_prot: 307 rv="ascii-udp"; 308 break; 309 } 310 return rv; 311 } 312 297 313 conn *conn_new(const int sfd, const int init_state, const int event_flags, 298 314 const int read_buffer_size, const int prot, … … 356 372 if (settings.verbose > 1) { 357 373 if (init_state == conn_listening) { 358 fprintf(stderr, "<%d server listening\n", sfd); 374 fprintf(stderr, "<%d server listening (%s)\n", sfd, 375 prot_text(prot)); 359 376 } else if (IS_UDP(prot)) { 360 377 fprintf(stderr, "<%d server listening (udp)\n", sfd); … … 3564 3581 /* create the UDP listening socket and bind it */ 3565 3582 u_socket = server_socket(settings.udpport, ascii_udp_prot, 3566 &u_socket_count);3583 &u_socket_count); 3567 3584 if (u_socket == NULL) { 3568 3585 fprintf(stderr, "failed to listen on UDP port %d\n", settings.udpport);
