Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
fd13a3cc
Commit
fd13a3cc
authored
Mar 17, 2002
by
Kim F. Storm
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Describe enhanced networking support.
parent
5439f987
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
9 deletions
+43
-9
etc/NEWS
etc/NEWS
+43
-9
No files found.
etc/NEWS
View file @
fd13a3cc
...
...
@@ -665,18 +665,52 @@ will lead to undesirable results, so don't let it happen; the first
change group you start for any given buffer should be the last one
finished.
**
You can now use non-blocking connect to open network streams
.
**
Enhanced networking support
.
The function open-network-stream has a new optional 7th argument.
If non-nil, that function will initiate a non-blocking connect and
re
turn immediately before the connection is established
.
*** There is a new `make-network-process' function which supports
opening of stream and datagram connections to a server, as well as
c
re
ate a stream or datagram server inside emacs
.
It returns nil if the system does not support non-blocking connects;
the caller may then make a normal (blocking) open-network-stream.
- A server is started using :server t arg.
- Datagram connection is selected using :datagram t arg.
- A server can open on a random port using :service t arg.
- Local sockets are supported using :family 'local arg.
- Non-blocking connect is supported using :nowait t arg.
The filter and sentinel functions can now be specified as arguments
to open-network-stream. When the non-blocking connect completes, the
sentinel is called with the status matching "open" or "failed".
*** Original open-network-stream is now emulated using make-network-process.
*** New function open-network-stream-nowait.
This function initiates a non-blocking connect and returns immediately
before the connection is established. The filter and sentinel
functions can be specified as arguments to open-network-stream-nowait.
When the non-blocking connect completes, the sentinel is called with
the status matching "open" or "failed".
*** New function open-network-stream-server.
*** New functions process-datagram-address and set-process-datagram-address.
*** By default, the function process-contact still returns (HOST SERVICE)
for a network process. Using the new optional KEY arg, the complete list
of network process properties or a specific property can be selected.
Using :local and :remote as the KEY, the address of the local or
remote end-point is returned. An Inet address is represented as a 5
element vector, where the first 4 elements contain the IP address and
the fifth is the port number.
*** Network processes can now be stopped and restarted with
`stop-process' and `continue-process'. For a server process, no
connections are accepted in the stopped state. For a client process,
no input is received in the stopped state.
*** Function list-processes now has an optional argument; if non-nil,
only the processes whose query-on-exit flag is set are listed.
*** New set-process-query-on-exit-flag and process-query-on-exit-flag
functions. The existing process-kill-without-query function is still
supported, but new code should use the new functions.
** New function substring-no-properties.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment