Mercurial > emacs
comparison src/process.c @ 17247:351006378b51
(Fopen_network_stream): Use same socket for in and out.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Tue, 25 Mar 1997 03:52:53 +0000 |
parents | dd2545e79add |
children | 77b137e2d9a7 |
comparison
equal
deleted
inserted
replaced
17246:7f37ef17af0f | 17247:351006378b51 |
---|---|
1853 send_command (s, C_PORT, 0, "%s:%d", XSTRING (host)->data, ntohs (port)); | 1853 send_command (s, C_PORT, 0, "%s:%d", XSTRING (host)->data, ntohs (port)); |
1854 send_command (s, C_DUMB, 1, 0); | 1854 send_command (s, C_DUMB, 1, 0); |
1855 #endif /* TERM */ | 1855 #endif /* TERM */ |
1856 | 1856 |
1857 inch = s; | 1857 inch = s; |
1858 outch = dup (s); | 1858 outch = s; |
1859 if (outch < 0) | |
1860 report_file_error ("error duplicating socket", Fcons (name, Qnil)); | |
1861 | 1859 |
1862 if (!NILP (buffer)) | 1860 if (!NILP (buffer)) |
1863 buffer = Fget_buffer_create (buffer); | 1861 buffer = Fget_buffer_create (buffer); |
1864 proc = make_process (name); | 1862 proc = make_process (name); |
1865 | 1863 |