$include_dir="/home/hyper-archives/boost-users/include"; include("$include_dir/msg-header.inc") ?>
From: Chris Ross (cross+boost_at_[hidden])
Date: 2008-06-19 21:49:52
On Jun 19, 2008, at 8:22 AM, Andrew Holden wrote:
>> In either case, when I debug, the port of the endpoint is always  
>> 11035,
>> no matter what I set it to. I am able to connect to the endpoint, but
>> not able to write data to it. I get a "File handle supplied is not  
>> valid
>> error message". I presume the most likely reason for this is that the
>> port 11035 is not open.
>
> Do you mean 11035 or 11305?  I ask this because, when I swap the  
> bytes of 10540, I get 11305.
>
> I'm not familiar with ASIO, but I know that in network  
> communication, integers are sent in "network byte order," which is  
> most significant byte first, but Intel processors store integers  
> least significant byte first.  Hence the need to swap them.
   I had that thought at first too, but on rereading his original  
message realized he did say "no matter what I set it to," and realized  
I must be thinking something way too simple to actually be the  
problem.  :-)
   Good mention, though!
                                - Chris