Boost logo

Boost Users :

Subject: [Boost-users] Can't asio::write when len > 14
From: David Kaplan (davkaplan_at_[hidden])
Date: 2010-02-21 06:13:48


I can't seem to write to my tcp socket with boost::asio any buffer
with len > 14:

uint8_t tmp[20];
int len = 20;
asio::write(_socket, buffer(tmp, len));

if len > 14, it will always only return 14 bytes written!

If len < 14, it writes correctly.

What's going on?


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net