Boost logo

Boost Users :

From: Jonathan Locke (jonathan_at_[hidden])
Date: 2008-06-19 10:11:52


> Probably, 11035 is the *local* port - not the port of the endpoint?
> Can you post short code snippiet where you setup and connect your socket?
>
The 11035 port number turned out to be 10540 encoded into network format
(ie perform htons on 10540 and 11035 is the result). The "File Handle
supplied is invalid" error message was an interesting one, but the cause
turned out to be that I had let the io_service and endpoint_iterator go
out of scope, while the socket was a class variable (since it would be
needed for subsequent writes). I thought that keeping the socket in
scope would be enough, but apparently not, the solution was to make all
3 class variables.

Thanks for the reply.


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