class type wrapped_datagram_socket =
wrapped_datagram_socket allows datagrams to be sent via proxies.
It provides versions of the
recvfrom functions that
use extended socket names (which are proxy-friendly).
method descriptor :
The underlying file descriptor. This descriptor must not be used
to transfer data (
Unix.recv(from), etc.), because the
descriptor may be connected with a proxy, and the socket addresses
may be wrong that are used by the low-level socket functions.
The right way is to use the methods below to transfer data. It is
allowed, however, to pass the descriptor to
Unix.select, and to check
whether transfers are possible. It is also allowed to set or clear
non-blocking mode, and the close-on-exec flag, and to modify the
method sendto :
int -> int -> Unix.msg_flag list -> Uq_engines.sockspec -> int
Send data over the (unconnected) socket
method recvfrom :
int -> int -> Unix.msg_flag list -> int * Uq_engines.sockspec
Receive data from the (unconnected) socket. The method will raise EAGAIN if the message cannot be processed for some reason, even if the socket is in blocking mode. In this case, the received message is discarded.
method shut_down :
unit -> unit
Close the descriptor, shuts down any further needed resources
method datagram_type :
method socket_domain :
method socket_type :
method socket_protocol :