comparison src/process.c @ 43995:110955214222

(Fmake_network_process): Remove unused variable `sa'. Doc fix. Add usage:. (set_socket_options): Remove unused variables `optnum' and `opttype'.
author Pavel Janík <Pavel@Janik.cz>
date Mon, 18 Mar 2002 11:27:06 +0000
parents 7ec801358b7e
children 177616cff62b
comparison
equal deleted inserted replaced
43994:cf0ef9dd4fe9 43995:110955214222
2215 { 2215 {
2216 Lisp_Object opt; 2216 Lisp_Object opt;
2217 Lisp_Object val; 2217 Lisp_Object val;
2218 char *name, *arg; 2218 char *name, *arg;
2219 struct socket_options *sopt; 2219 struct socket_options *sopt;
2220 int optnum, opttype;
2221 int ret = 0; 2220 int ret = 0;
2222 2221
2223 opt = XCAR (opts); 2222 opt = XCAR (opts);
2224 opts = XCDR (opts); 2223 opts = XCDR (opts);
2225 2224
2492 2491
2493 DEFUN ("make-network-process", Fmake_network_process, Smake_network_process, 2492 DEFUN ("make-network-process", Fmake_network_process, Smake_network_process,
2494 0, MANY, 0, 2493 0, MANY, 0,
2495 doc: /* Create and return a network server or client process. 2494 doc: /* Create and return a network server or client process.
2496 2495
2497 In emacs, network connections are represented by process objects, so 2496 In Emacs, network connections are represented by process objects, so
2498 input and output work as for subprocesses and `delete-process' closes 2497 input and output work as for subprocesses and `delete-process' closes
2499 a network connection. However, a network process has no process id, 2498 a network connection. However, a network process has no process id,
2500 it cannot be signalled, and the status codes are different from normal 2499 it cannot be signalled, and the status codes are different from normal
2501 processes. 2500 processes.
2502 2501
2605 of the accepted (and failed) connections may be recorded in the server 2604 of the accepted (and failed) connections may be recorded in the server
2606 process' buffer. 2605 process' buffer.
2607 2606
2608 The following special call returns t iff a given KEY VALUE 2607 The following special call returns t iff a given KEY VALUE
2609 pair is supported on this system: 2608 pair is supported on this system:
2610 (make-network-process :feature KEY VALUE) */) 2609 (make-network-process :feature KEY VALUE)
2610
2611 usage: (make-network-process &rest ARGS) */)
2611 (nargs, args) 2612 (nargs, args)
2612 int nargs; 2613 int nargs;
2613 Lisp_Object *args; 2614 Lisp_Object *args;
2614 { 2615 {
2615 Lisp_Object proc; 2616 Lisp_Object proc;
2628 int ai_addrlen; 2629 int ai_addrlen;
2629 struct sockaddr *ai_addr; 2630 struct sockaddr *ai_addr;
2630 struct _emacs_addrinfo *ai_next; 2631 struct _emacs_addrinfo *ai_next;
2631 } ai, *res, *lres; 2632 } ai, *res, *lres;
2632 #endif /* HAVE_GETADDRINFO */ 2633 #endif /* HAVE_GETADDRINFO */
2633 struct sockaddr *sa = 0;
2634 struct sockaddr_in address_in; 2634 struct sockaddr_in address_in;
2635 #ifdef HAVE_LOCAL_SOCKETS 2635 #ifdef HAVE_LOCAL_SOCKETS
2636 struct sockaddr_un address_un; 2636 struct sockaddr_un address_un;
2637 #endif 2637 #endif
2638 int port; 2638 int port;