got a error on the internet
Posted: Mon Oct 19, 2015 12:14 pm
When democlient and demoserver is in the same machine, everythin is OK. But when I put the demoserver and the demo client to the different machine. everything goes wrong. I got an error:
RCF::Exception: Socket error. Call to OS function socket() failed. OS: 10106 -
I have changed the endpoint parameter to get things done.
In the demoserver:
// Add the endpoints that this server will support.
std::vector<RCF::EndpointPtr> endpoints;
endpoints.push_back( RCF::EndpointPtr( new RCF::TcpEndpoint("0.0.0.0",50001) ) );
endpoints.push_back( RCF::EndpointPtr( new RCF::HttpEndpoint("0.0.0.0",50002) ) );
in democlient:
endpoints.push_back( RCF::EndpointPtr( new RCF::TcpEndpoint("xxx.xx.xxx.xxx",50001) ) );
endpoints.push_back( RCF::EndpointPtr( new RCF::HttpEndpoint("xxx.xx.xxx.xxx",50002) ) );
But it does't work.
I searched, 10106 means:
WSAEPROVIDERFAILEDINIT 10106
Service provider failed to initialize.
The requested service provider could not be loaded or initialized. This error is returned if either a service provider's DLL could not be loaded (LoadLibrary failed) or the provider's WSPStartup or NSPStartup function failed.
Please help me, Thank you!
RCF::Exception: Socket error. Call to OS function socket() failed. OS: 10106 -
I have changed the endpoint parameter to get things done.
In the demoserver:
// Add the endpoints that this server will support.
std::vector<RCF::EndpointPtr> endpoints;
endpoints.push_back( RCF::EndpointPtr( new RCF::TcpEndpoint("0.0.0.0",50001) ) );
endpoints.push_back( RCF::EndpointPtr( new RCF::HttpEndpoint("0.0.0.0",50002) ) );
in democlient:
endpoints.push_back( RCF::EndpointPtr( new RCF::TcpEndpoint("xxx.xx.xxx.xxx",50001) ) );
endpoints.push_back( RCF::EndpointPtr( new RCF::HttpEndpoint("xxx.xx.xxx.xxx",50002) ) );
But it does't work.
I searched, 10106 means:
WSAEPROVIDERFAILEDINIT 10106
Service provider failed to initialize.
The requested service provider could not be loaded or initialized. This error is returned if either a service provider's DLL could not be loaded (LoadLibrary failed) or the provider's WSPStartup or NSPStartup function failed.
Please help me, Thank you!