Windows Phone 7 : Socket Programming - sockets

Is there any support for TCP/IP Sockets in Windows Phone 7? I'm not having any luck finding it so far.
I want to connect to a port on a server and issue commands/receive responses

It was added in mango version.
http://msdn.microsoft.com/en-us/library/system.net.sockets.socket(v=VS.96).aspx

from the WM Phone 7 Dev FAQ:
http://social.msdn.microsoft.com/Forums/en-US/windowsphone7series/thread/2892a6f0-ab26-48d6-b63c-e38f62eda3b3
Can I use Sockets for peer to peer communication?
Windows Phone 7 Series currently does not expose the Socket classes. While the version of Silverlight on the phone follows closely the feature list for Silverlight 3 on the desktop, it is a subset of those features and will not contain all classes. (It also holds a superset of classes not available in Silverlight 3.)

According to microsoft announcment, sockets will be available in next "mango" update for late 2011. Dev tools to ship May 2011.
"...The integration extends deeper into the operating system via sockets..."

While sockets are not exposed in Windows Phone 7, the better alternative would be to use WCF.

Related

Web Socket: IIS WebSocket Protocol feature need to be enabled for Socket.io?

For one of my application, I have implemented Web socket using socket.io and hosted in IIS. Currently socket connection helping to provide two way connection between client (React) and server (node.js).
As I mentioned, I have hosted my application in IIS. I have few doubts regarding Turn Windows features on or off -> Internet Information services -> World wide Web Services -> Application Development Features -> WebSocket Protocol. I have tested my application without enabling this feature, its working fine, but I would like to confirm below stuffs.
WebSocket Protocol
Do I really need to enable WebSocket protocol feature to make websocket work in my application? If so, how now it is working fine without enabling (I haven't do performance and stress testing, I may face issue on this).
What if I not enabling this feature? in short what is the actual use of this feature?
It would be helpful if anyone answer the above questions. Thanks in advance.
WebSocket as part of the HTTP stack requires a bunch of things to be ready on Windows (across multiple components), so hope this answer helps a little.
HTTP.sys, a driver deep down in Windows OS, is upgraded to support the necessary packet communication required by the protocol.
The IIS WebSocket module, an IIS extension which many other Microsoft frameworks (like SignalR) depend on.
So WebSocket support is by default on in HTTP.sys, and you don't need the IIS module if your framework (socket.io) has no dependency there.
Note that the "Summary" section provides several useful links,
https://learn.microsoft.com/en-us/iis/get-started/whats-new-in-iis-8/iis-80-websocket-protocol-support#summary
and the same article also reveals that IIS WebSocket module has
conflicts with socket.io.

TcpListener implementation for windows phone 7

I'm looking a TcpListener implementation in c# because I'm doing a server ftp for wp7/wp8 and I found a ready to user lib, but use TcpListener, that in wp7 is not present, can you find a solution?
thanks
It is not possible to listen for incoming connections in Windows Phone 7.1. The Silverlight Socket class used in that system doesn't provide that functionality. There is no way to implement a server in WP 7.1.
That possibility was addes for the first time in Windows Phone 8.

ADO.NET in Windows 8

Is there ADO.NET in Windows 8 and Windows Phone 8? I need SqlConnection class. Maybe there is additional libraries?
There is no ADO.NET in WP8. If you are referring to modern, Windows 8 Store Applications, ADO.NET is not allowed either. ADO.NET would only be available in desktop applications.
The answer above is correct. Here is some follow up content, if needed.
Windows 8 applications are expected to run directly from the Windows Store, without the limitations imposed by connecting to local servers via a connection string.
The recommended approach is to expose your database via a web service.
Two Microsoft technologies that do this are:
(1) Windows Communication Foundation
(2) ASP.NET Web API (the more modern approach)
For Windows Communication Foundation, here is a tutorial:
http://www.intstrings.com/ramivemula/articles/create-a-simple-wcf-service-against-pubs-database-using-ef-linq-part-i/
For ASP.NET Web API, here is a tutorial:
http://code.msdn.microsoft.com/ASP-NET-Web-API-Tutorial-c4761894/view/SourceCode

Iphone programming [TCP APP] + Windows

i know that similar question are already asked some time but cant find anything that maches my "problem"
just a quick and dirty:
is there a sdk where i can programm a TCP (sending/recieveing) tool for iphone with windows?
there are some article that telling it is possible to talk tcp with html5
If html5 is a good choice for this what i need to "start" programming for iphone.
before the flame wars start: im usually coding heavly with AutoIT for my Windows tools.
Since iOS is built on UNIX, you can use any C code or libraries that uses TCP sockets. Any examples you find using C and sockets will apply. You can also use Apple's CFSocket library for more high level access.
TCP sockets are TCP sockets, they can talk to anything (Windows included) if it's on the same network.
To write the software and install it to an iPhone, you will need a Mac. For more info see How can I develop for iPhone using a Windows development machine?

Does iPhone supports multicasting and broadcasting?

Does iPhone supports multicasting and broadcasting?
iPhone is the client and i have server running desktop (Mac/Windows) machine.
Since the Windows does not mandatorily supports Bonjour, I ll have to follow some other steps.
Is there any other way of detecting the machines which runs the my server running?
iPhone supports Berkley sockets (and you can access it), so you can go with it to send broadcast/multicast messages, just have to write a bunch of code for that.