Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
dc94052c
Commit
dc94052c
authored
Aug 14, 1998
by
sof
Browse files
[project @ 1998-08-14 13:05:45 by sof]
Doc fixes
parent
214efba0
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/lib/misc/Socket.lhs
View file @
dc94052c
%
% (c) The GRASP/AQUA Project, Glasgow University, 1995
, 1996
% (c) The GRASP/AQUA Project, Glasgow University, 1995
-98
%
% Last Modified: Fri Jul 21 15:53:32 1995
% Darren J Moffat <moffatd@dcs.gla.ac.uk>
...
...
@@ -42,14 +42,14 @@ import IO
%* *
%***************************************************************************
Calling
$
connectTo
$
creates a client side socket which is
Calling
@
connectTo
@
creates a client side socket which is
connected to the given host and port. The Protocol and socket type is
derived from the given port identifier. If a port number is given
then the result is always an internet family
$
Stream
$
socket.
then the result is always an internet family
@
Stream
@
socket.
If the
$
PortID
$
specifies a unix family socket and the
$
Hostname
$
differs from that returned by
$
getHostname
$
then an error is
raised. Alternatively an empty string may be given to
$
connectTo
$
If the
@
PortID
@
specifies a unix family socket and the
@
Hostname
@
differs from that returned by
@
getHostname
@
then an error is
raised. Alternatively an empty string may be given to
@
connectTo
@
signalling that the current hostname applies.
\begin{code}
...
...
@@ -97,7 +97,7 @@ connectTo _ (UnixSocket path) = do
\end{code}
The dual to the
$
connectTo
$
call. This creates the server side
The dual to the
@
connectTo
@
call. This creates the server side
socket which has been bound to the specified port.
\begin{code}
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment