Merge pull request #397 from majestrate/staging

don't inline shit
pull/398/head
Jeff 5 years ago committed by GitHub
commit a1ccf61df3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -7,7 +7,7 @@
namespace llarp namespace llarp
{ {
inline int int
tcp_conn::read(byte_t* buf, size_t sz) tcp_conn::read(byte_t* buf, size_t sz)
{ {
if(_shouldClose) if(_shouldClose)
@ -30,14 +30,14 @@ namespace llarp
return 0; return 0;
} }
inline void void
tcp_conn::flush_write() tcp_conn::flush_write()
{ {
connected(); connected();
ev_io::flush_write(); ev_io::flush_write();
} }
inline ssize_t ssize_t
tcp_conn::do_write(void* buf, size_t sz) tcp_conn::do_write(void* buf, size_t sz)
{ {
if(_shouldClose) if(_shouldClose)
@ -48,7 +48,7 @@ namespace llarp
return ::send(fd, buf, sz, MSG_NOSIGNAL); // ignore sigpipe return ::send(fd, buf, sz, MSG_NOSIGNAL); // ignore sigpipe
} }
inline void void
tcp_conn::connect() tcp_conn::connect()
{ {
socklen_t slen = sizeof(sockaddr_in); socklen_t slen = sizeof(sockaddr_in);
@ -78,7 +78,7 @@ namespace llarp
} }
} }
inline int int
tcp_serv::read(byte_t*, size_t) tcp_serv::read(byte_t*, size_t)
{ {
int new_fd = ::accept(fd, nullptr, nullptr); int new_fd = ::accept(fd, nullptr, nullptr);

Loading…
Cancel
Save