System.Net.Sockets

Good morning, I´m using the G120 module, NETMF V3, and I´m trying to add a socket server thread to my app. I´ve seen several examples and searched all over the forum pages, but it seems that everybody use System.Net.Sockets without any problem. I don´t find it anywhere, neither GHI.Premium.Net, that I saw in other examples.

How can I create a “Socket” type object in order to develop my socket server app?

Thanks for your time.

NETMF V3 was released 7 years ago. Maybe you are referring to 4.3?

Yeah, sorry I misswrote. V4.3 :slight_smile:

Check if you have referenced System.dll. There is no GHI.Premium in 4.3, APIs have changed:
https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.3/
https://www.ghielectronics.com/downloads/man/Library_Documentation_v4.2/Premium/

Yes I have it referenced, is the first one. These are my references:

using System;
using System.IO.Ports;
using Microsoft.SPOT;
using System.Threading;
using HRDWRE = Microsoft.SPOT.Hardware;
using GHI.Pins;
using System.IO;
using Microsoft.SPOT.IO;
using GHI.IO.Storage;

using GHI.Glide;
using GHI.Glide.Display;
using GHI.Glide.UI;

using Microsoft.SPOT.Presentation;
using Microsoft.SPOT.Presentation.Media;
using GHI.Processor;
using barcode = GHI.Usb.Host;
using System.Text;
using Microsoft.SPOT.Net;
using Microsoft.SPOT.Net.NetworkInformation;
using GHI.Networking;

I found it, Thanks for your support.

USING statements are not references though, right ? USING simply gives you a way of referring to objects in those namespaces by a short name, rather than by their fully qualified name. If you don’t also add the reference (in solution explorer) you won’t have the assembly in your app, so the build will fail.