Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Socket programming
Message
From
04/06/2012 17:55:07
 
 
To
04/06/2012 16:48:11
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01545292
Message ID:
01545296
Views:
53
>A remote application communicates to a Web Service on an IIS server to collect some data and wait for the response. One of our architectural design involves something more direct, such as a push, thus socket programming, to have the server to push data to a remote application when time comes. Is this still used today or this has been superceeded by something better?
>
>I provided a training class in the '90s on this at a user group in Montreal. But, maybe actual technology provides something more bettter, more powerful and better in general.
>
>Any feedback on the topic would be appreciated?

In your situation, what do you see as the potential advantages of socket programming?

As I understand, it's not well supported across the public Internet. Increasingly, routers and firewalls are only allowing traffic with recognized protocols (http, ftp etc.) Also, it's usually viewed by antivirus software as hack attempts and is blocked by default. To get it to work you usually have to set up firewall and AV exceptions.

You still see this sort of thing occasionally. Some walk-up network printer/copier/scanner (AIO) devices have optional "communications utilities" you can install on PCs on the LAN. You can then set up soft keys on the device, and do things like scan directly to various PCs on the LAN. The PCs are constantly listening for incoming traffic from the device.

As you know, there really is no such thing as "push" technology. To get something that looks like push, you have to set up a server (listening) process on the client with a fast (enough) polling interval. When you do that, you open up a lot of security issues. Security wasn't top-of-mind in the '90s but it is today.

With that in mind, it's not too surprising that some vendors are actually using web servers for the kind of technology and features I mentioned above with the AIO device. For example, some HP network AIO devices install an Apache Tomcat Java server on client PCs as part of the standard (massively bloated) client software installation. That lets things happen like the PCs getting alerts about out-of-paper, low ink/toner, status of printed jobs etc.

There are "lightweight" web servers available you could consider for client installation if that would meet your needs: http://en.wikipedia.org/wiki/Comparison_of_lightweight_web_servers
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform