Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Carl Shapiro
cmucl
Commits
8d312992
Commit
8d312992
authored
22 years ago
by
toy
Browse files
Options
Downloads
Patches
Plain Diff
Reference the out-of-band data stuff in internet.tex instead of
listing it here. From Mario Mommer.
parent
614656ad
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docs/cmu-user/ipc.tex
+6
-29
6 additions, 29 deletions
docs/cmu-user/ipc.tex
with
6 additions
and
29 deletions
docs/cmu-user/ipc.tex
+
6
−
29
View file @
8d312992
...
...
@@ -48,7 +48,7 @@ specific conditions.
connections on the given port. If port is unavailable for any
reason, this signals an error. When a client connects to this port,
the acceptance mechanism makes a wire structure and invokes the
\var
{
on-connect
}
function. Invoking this function has a couple
\var
{
on-connect
}
function. Invoking this function has a couple
of
purposes, and
\var
{
on-connect
}
may be
\nil
{}
in which case the
system foregoes invoking any function at connect time.
...
...
@@ -406,31 +406,8 @@ Unfortunately, most implementations of TCP/IP are broken, so use of
out-of-band data is limited for safety reasons. You can only reliably
send one character at a time.
This routines in this section provide a mechanism for establishing
handlers for out-of-band characters and for sending them out-of-band.
These all take a Unix file descriptor instead of a wire, but you can
fetch a wire's file descriptor with
\code
{
wire-fd
}
.
\begin{defun}
{
wire:
}{
add-oob-handler
}{
\args
{
\var
{
fd
}
\var
{
char
}
\var
{
handler
}}}
The function
\code
{
add-oob-handler
}
arranges for
\var
{
handler
}
to be
called whenever
\var
{
char
}
shows up as out-of-band data on the file
descriptor
\var
{
fd
}
.
\end{defun}
\begin{defun}
{
wire:
}{
remove-oob-handler
}{
\args
{
\var
{
fd
}
\var
{
char
}}}
This function removes the handler for the character
\var
{
char
}
on
the file descriptor
\var
{
fd
}
.
\end{defun}
\begin{defun}
{
wire:
}{
remove-all-oob-handlers
}{
\args
{
\var
{
fd
}}}
This function removes all handlers for the file descriptor
\var
{
fd
}
.
\end{defun}
\begin{defun}
{
wire:
}{
send-character-out-of-band
}{
\args
{
\var
{
fd
}
\var
{
char
}}}
This function Sends the character
\var
{
char
}
down the file
descriptor
\var
{
fd
}
out-of-band.
\end{defun}
The Wire package is built on top of
\cmucl
{}
s networking support. In
view of this, it is possible to use the routines described in section
\ref
{
internet-oob
}
for handling and sending out-of-band data. These
all take a Unix file descriptor instead of a wire, but you can fetch a
wire's file descriptor with
\code
{
wire-fd
}
.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment