We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffeece8 commit 49a36ceCopy full SHA for 49a36ce
network-transport/src/Network/Transport.hs
@@ -60,6 +60,11 @@ data EndPoint = EndPoint {
60
-- | Lightweight connection to an endpoint.
61
data Connection = Connection {
62
-- | 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.
68
send :: [ByteString] -> IO (Either (TransportError SendErrorCode) ())
69
-- | Close the connection.
70
, close :: IO ()
0 commit comments