• Mikio Hara's avatar
    ipv4: add {Read,Write}Batch methods to {Packet,Raw}Conn · b7a1f62a
    Mikio Hara authored
    This change provides message IO functionality that may support the
    construction of modern datagram transport protocols.
    
    The modern datagram transport protocols on a multihomed node basically
    need to control each packet path for traffic engineering by using
    information belongs to network- or link-layer implementation. In
    addtion, it's desirable to be able to do simultaneous transmission
    across multiple network- or link-layer adjacencies wihtout any
    additional cost.
    
    The ReadBatch and WriteBatch methods of PacketConn and RawConn can be
    used to read and write an IO message that contains the information of
    network- or link-layer implementation, and read and write a batch of
    IO messages on Linux. The Marshal and Parse methods of ControlMessage
    and Header can help to marshal and parse information contained in IO
    messages.
    
    Updates golang/go#3661.
    
    Change-Id: Ia84a9d3bc51641406eaaf4258f2a3066945cc323
    Reviewed-on: https://go-review.googlesource.com/38275
    Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
    b7a1f62a
Name
Last commit
Last update
bpf Loading commit data...
context Loading commit data...
dict Loading commit data...
dns/dnsmessage Loading commit data...
html Loading commit data...
http2 Loading commit data...
icmp Loading commit data...
idna Loading commit data...
internal Loading commit data...
ipv4 Loading commit data...
ipv6 Loading commit data...
lex/httplex Loading commit data...
lif Loading commit data...
nettest Loading commit data...
netutil Loading commit data...
proxy Loading commit data...
publicsuffix Loading commit data...
route Loading commit data...
trace Loading commit data...
webdav Loading commit data...
websocket Loading commit data...
xsrftoken Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
codereview.cfg Loading commit data...