Access an existing socket.io server from a c++ application
Posted Date Unknown Charles Sunny 1 Comment

Is it possible to access an existing socket.io (websocket implementation running on node.js) server from a c++ application. There is support for websockets in .NET 4.5, but as Websockets is a very new part of html5  there are some issues in using it. Now, I have a working client in javascript which communicates with the websockets server. But I need to embed it inside c++ applications written in direct 3d. Your options are:
1. take C# websockets library example from and make a dll for me which I can use in my direct 3d app OR
2. write a c++ code based on the example above and make it compile with my project.
Or any other way you can come up with....Is there any fast solutions?...[Qn from Odesk].

See All Responses Below...
Author
Message Rating
Posted on: 23/05/2012
If you are going to communicate from a Javascript to a C++ program using sockets from a browser, it may not work because of the security restrictions in the browser. I tried a similar technique using Java and it failed in the past. Most probably this will fail in this scenario too..

Tom
 
Please Login to Post Your Comments
Name (Max. 100 characters)
Please post your comments here
Select Language
Comments
   Design  HTML
Attach File(Max. Size: 2 MB)
A few simple rules when posting your Comments,
  1. Please post only answers relevant to the topic of discussion.
  2. Please dont misuse this site or do not be abusive, offensive, inappropriate,harass anyone on the boards or post ads or spam. Doing so will delete your inappropriate messages and will block or delete your account on this site. 

TekTipsDownload
GateExam
Academic Projects
TekTipsExperts



 
Site optimized for IE7, 1280 X 768 and above. Copyright © 2010 - 2018 KTS InfoTech
Site Developed Using KTS WebCloud