Skip to content

Commit 49a36ce

Browse files
committed
Improve docs
1 parent ffeece8 commit 49a36ce

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

network-transport/src/Network/Transport.hs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,11 @@ data EndPoint = EndPoint {
6060
-- | Lightweight connection to an endpoint.
6161
data Connection = Connection {
6262
-- | Send a message on this connection.
63+
--
64+
-- 'send' provides vectored I/O, and allows multiple data segments to be
65+
-- sent using a single call (cf. 'Network.Socket.ByteString.sendMany').
66+
-- Note that this segment structure is entirely unrelated to the segment
67+
-- structure /returned/ by a 'Received' event.
6368
send :: [ByteString] -> IO (Either (TransportError SendErrorCode) ())
6469
-- | Close the connection.
6570
, close :: IO ()

0 commit comments

Comments
 (0)