TCP Client sample

I’ve read about TCP server example in code share :

it contains 2 liberary :

using GHIElectronics.NETMF.Net.Sockets;
using Socket = GHIElectronics.NETMF.Net.Sockets.Socket;

it is strange for me since I can’t see those in my references list!
How can I add them to my project ? (I’m using Raptor mainboard)
Apart from that is there any example about using Ethernet_ENC28 as TCP client ?

That code example is out of date.

1 Like

@ Mike - That topic is just about how to start network interface.
I want to know how I can use Socket and bind an IP to it by something like IPEndpoint, then transfer data to a server (my PC)
is there any example?

Just like you would do it in Windows .NET.
There is not really a difference after the interface is initialized:

TCP Client::

var socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp);
socket.Connect(new IPEndPoint(IPAddress.Parse("theIP"), daPort));

@ Reinhard Ostermeier - Thank you
Yes I found the assembly is just :
It’s working :slight_smile: thanks