package affect
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page
Streamlined and natural concurrency model for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
affect-0.0.0.tbz
sha512=b328f6696e60c489da8cc2e8fad0537ca6634a39fc0c5de5840d4f98561f110617ef79ba8285ee8427dd99908c6b3d39114973598cddc5ded91abcce3b91b9a6
doc/affect.tmp/Net/Connection/index.html
Module Net.ConnectionSource
Network connections.
Connections
The type for connections.
Source
val open' :
?nonblock:bool ->
?socket_type:Unix.socket_type ->
peer:Endpoint.t ->
unit ->
(t, string) resultopen ~peer () opens a connection to a peer listening on peer with:
nonblockiftruethe socket is in non-blocking mode (default).socket_typeis the type of connection. Defaults toUnix.socket_type.SOCK_STREAMor thefd's type ifpeeris`Fd fd– ifsocket_typeis specified in this case this errors iffdis not of the specified type.- If a new file descriptor is created, it is with
cloexecset totrue. - If
peeris`Fd fdit is assumed to be connected. So the call just tries to honour thenonblockargument and gets it's peer and local address from thefd. Also note that in this caseclose_noerrdoes not closefdit's your duty to do so.
If a connection is returned it must always eventually be closed with close_noerr.
Source
val try_open :
?nonblock:bool ->
?socket_type:Unix.socket_type ->
peer:Endpoint.t ->
unit ->
(t option, string) resulttry_open ~endpoint is like open' except None is returned if Unix.connect errors with ENOENT, ECONNREFUSED or EHOSTUNREACH.
close_noerr c closes c without raising errors and can be safely called repeatedly. Note that if peer c is `Fd fd this does not close fd.
Properties
fd c is the file descriptor of c.
peer c is the peer of c.
peer_addr c is the peer address for c.
our_addr c is our address for c.
socket_type c is the socket type of c.
Formatting
pp formats connections for inspection.
pp_debug formats connection for more inspection.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page