X-Git-Url: http://xvm.mit.edu/gitweb/invirt/third/libt4.git/blobdiff_plain/4e881433f37417ccbda89c09ffdf936855d462d4..f0dcb6b97d6d40f67698d1f71ac26970f1776f82:/rpc/connection.cc?ds=sidebyside diff --git a/rpc/connection.cc b/rpc/connection.cc index b29e136..4e49305 100644 --- a/rpc/connection.cc +++ b/rpc/connection.cc @@ -31,7 +31,7 @@ connection::~connection() { VERIFY(!wpdu_.buf.size()); } -shared_ptr connection::to_dst(const sockaddr_in &dst, connection_delegate * delegate, int lossy) { +shared_ptr connection::to_dst(const sockaddr_in & dst, connection_delegate * delegate, int lossy) { socket_t s = socket(AF_INET, SOCK_STREAM, 0); s.setsockopt(IPPROTO_TCP, TCP_NODELAY, (int)1); if (connect(s, (sockaddr*)&dst, sizeof(dst)) < 0) {