$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [Boost-users] ASIO newbie: Passing parameters from a TCP client to a server
From: Igor R (boost.lists_at_[hidden])
Date: 2009-09-20 14:06:51
> I need the client to pass a few arguments to the server, lets say four.
>
> Should I pass them in 4 different lines?
ASIO sends your buffer as is, and doesn't care about the format of the
data. The format is a matter of agreement between your server and your
client.
> Being synchronous I suppose the client blocks until the server performs a read? (that seems to be what I am seeing now).
Synchronous "send" blocks until the data is sent.