Add support for writev for AsyncUDPSocket
authorNaizhi Li <naizhi@fb.com>
Thu, 2 Apr 2015 00:52:47 +0000 (17:52 -0700)
committerafrind <afrind@fb.com>
Thu, 2 Apr 2015 19:02:25 +0000 (12:02 -0700)
commit62e15017ed5b871521ad8d89cdb37a91e7401604
tree2bee3b1409a084ce58732cd5b3927effc138f659
parent8cb809048541c6dc06224bb17e705cfbe76527d1
Add support for writev for AsyncUDPSocket

Summary:
I have 2 local buffers and instead of allocating iobufs
on the heap, I can simply use iovec on the stack to send.

Test Plan: Unit tests and turn server.

Reviewed By: davejwatson@fb.com

Subscribers: folly-diffs@, ehrhardt, yfeldblum, chalfant, paramr

FB internal diff: D1956201

Signature: t1:1956201:1427918649:09f00399fd9e8ed3fe62be43b19adbf0a5a3f3b0
folly/io/async/AsyncUDPSocket.cpp
folly/io/async/AsyncUDPSocket.h