
hi, i working on the creation of a co-simulation framework , for that i'm using asio libraries and serialization to send exchange information between simulators, i'm getting a error that say me " invalid argument" but just that, i dont know about what argument is refered =(. some know which could be the cause(s)?thanks -- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

AMDG pedro chaparro wrote:
hi, i working on the creation of a co-simulation framework , for that i'm using asio libraries and serialization to send exchange information between simulators, i'm getting a error that say me " invalid argument" but just that, i dont know about what argument is refered =(. some know which could be the cause(s)?thanks
I'm guessing that this is a runtime error, not a compile time error? How do you get the error message? Is it an exception or something else? In Christ, Steven Watanabe

yes, it is from a exception, i'm re-using the code on
http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/example/serializati...
implement a co-simulation framework using a famous simulator called
network simulator 2, anyway , the runtime error comes when i try to do the
connection with the server, the server is open in listening mode but i can
not achieved establish the connection.
2009/10/16 Steven Watanabe
AMDG
pedro chaparro wrote:
hi, i working on the creation of a co-simulation framework , for that i'm using asio libraries and serialization to send exchange information between simulators, i'm getting a error that say me " invalid argument" but just that, i dont know about what argument is refered =(. some know which could be the cause(s)?thanks
I'm guessing that this is a runtime error, not a compile time error? How do you get the error message? Is it an exception or something else?
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

yes, it is from a exception, i'm re-using the code on http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/example/serializati... implement a co-simulation framework using a famous simulator called network simulator 2, anyway , the runtime error comes when i try to do the connection with the server, the server is open in listening mode but i can not achieved establish the connection.
Can you post the exact code that you use to "establish the connection"?

here, all the code , in bold i put the part where i call the client part tha
have to connect to a server that is already listening open the same port, u
will see some functions that are use for the simulator. I really aprecciate
ur help. The strange thins is that i can connect to the same server using a
external script, i mean, other code where simulator code is not included.
thanks
#include
yes, it is from a exception, i'm re-using the code on
http://www.boost.org/doc/libs/1_40_0/doc/html/boost_asio/example/serializati... implement a co-simulation framework using a famous simulator called network simulator 2, anyway , the runtime error comes when i try to do the connection with the server, the server is open in listening mode but i can not achieved establish the connection.
Can you post the exact code that you use to "establish the connection"?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain

*try {
//for(int i=1;i<8;i++){ boost::asio::io_service io_service; s11n_example::client client(io_service, "localhost", "9999"); io_service.run(); sleep(7); } *
Doesn't your debugger allow you to see what line of your code throws the exception? Anyway, try to change "localhost" to "127.0.0.1" - maybe the resolver fails to resolve it.

hi, i working on the creation of a co-simulation framework , for that i'm using asio libraries and serialization to send exchange information between simulators, i'm getting a error that say me " invalid argument" but just that, i dont know about what argument is refered =(. some know which could be the cause(s)?
Maybe you try to work with "unopened" socket - i.e. a socket object that doesn't have a valid handle.
participants (3)
-
Igor R
-
pedro chaparro
-
Steven Watanabe