Changeset 733
- Timestamp:
- 03/01/08 02:43:32 (6 months ago)
- Files:
-
- branches/binary/server/memcached.c (modified) (3 diffs)
- branches/binary/server/memcached.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/binary/server/memcached.c
r732 r733 3300 3300 printf("-p <num> TCP port number to listen on (default: 11211)\n" 3301 3301 "-U <num> UDP port number to listen on (default: 0, off)\n" 3302 "-B <num> binary protocol TCP port number to listen on (default: 0, off)\n"3303 3302 "-s <file> unix socket path to listen on (disables network support)\n" 3304 3303 "-a <mask> access mask for unix socket, in octal (default 0700)\n" … … 3553 3552 settings.port = atoi(optarg); 3554 3553 break; 3555 case 'B':3556 settings.binport = atoi(optarg);3557 break;3558 3554 case 's': 3559 3555 settings.socketpath = optarg; … … 3790 3786 } 3791 3787 3792 /* Try the binary port. */3793 if(settings.binport > 0) {3794 if(server_socket(settings.binport, binary_prot)) {3795 fprintf(stderr, "failed to listen to binary protocol\n");3796 exit(EXIT_FAILURE);3797 }3798 }3799 3788 /* 3800 3789 * initialization order: first create the listening sockets branches/binary/server/memcached.h
r732 r733 127 127 int port; 128 128 int udpport; 129 int binport; /* Port for binary protocol. */130 129 char *inter; 131 130 int verbose;
