vibe.d beta banner
get vibe.d
0.8.6

Asynchronous I/O that doesn’t get in your way, written in D

Struct UDPConnection

Represents a bound and possibly 'connected' UDP socket.

struct UDPConnection ;

Properties

NameTypeDescription
bindAddress[get] stringReturns the address to which the UDP socket is bound.
canBroadcast[get, set] boolDetermines if the socket is allowed to send to broadcast addresses.
localAddress[get] NetworkAddressThe local/bind address of the underlying socket.
multicastLoopback[set] boolSet IP multicast loopback mode.

Methods

NameDescription
addMembership (multiaddr, interface_index) Become a member of an IP multicast group.
close () Stops listening for datagrams and frees all resources.
connect (host, port) Locks the UDP connection to a certain peer.
opCast ()
recv (buf, peer_address) Receives a single packet.
send (data, peer_address) Sends a single packet.

Inner structs

NameDescription
Context
Authors

Sönke Ludwig

Copyright

© 2012-2016 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.