TCP Programming
A TCP/IP connection is the right choice when you need a reliable two-way, connection-based communication that ensures that data packets will be received in the correct order and that no data will be lost or transferred multiple times. You can create a TCP/IP socket with the following code:
Socket socket = new Socket(Addressfamily.InterNetwork,SocketType.Stream,ProtocolType.Tcp);
Connecting to a Server as a Client
After you have created a socket object, you are able to initiate a connection to a (remote) server with the Connect method of your socket. Your .NET Micro Framework application is thereby the client application. The connection establishment takes place synchronously, so your client application will be blocked until a connection is available.
public void Connect(EndPoint remoteEP);
Take note of the remoteEP parameter of the abstract type System.Net.EndPoint in the signature of the Connect method. For IP connections, you need to pass an instance of the System.Net.IPEndPoint class to the Connect method. IPEndPoint contains the IP address and the communication port, and it is derived from EndPoint.
You can create an IPEndPoint object with one of the following two constructors:
public IPEndPoint(long address, int port)
public IPEndPoint(IPAddress address, int port)
what is .NET Framework 3.0
Why is the .NET Framework 3.0 a major version numb...
Which version of the Common Language Runtime (CLR)...
Will the name change be reflected in any of the ex...
How does the .NET Framework 3.0 relate to the .NET...
What happens to the WinFX technologies?
What is the .NET Framework 3.0 (formerly WinFX)?
System Requirements for Installing .NET Framework ...
What Improvements does WCF offers over its earlier...
What are WCF features and what communication probl...
What contemporary computing problems WCS solves?
What contemporary computing problems WPF solves?
What is XAML ?
What is XBAP?
What is a service contract ( In WCF) ?
In terms of WCF, What is a message?
In terms of WCF, What is a service?
In terms of WCF, What is an endpoint?
In terms of WCF, What is an application endpoint?
In terms of WCF, What is an infrastructure endpoin...
In terms of WCF, What is an address?
In terms of WCF, What is an address?
In terms of WCF, What is binding?
What is an operation contract?
What is a message contract?
What is a fault contract?
N WCF, what do you understand by metadata of a ser...
What is password fatigue?
What are activities in WWF?
Jobs in USA ->NET
Learn .NET Framework 3.0
Download Microsoft .NET Framework 3.0 Redistributa...
Why is the .NET Framework 3.0 a major version numb...
Which version of the Common Language Runtime (CLR)...
Will the name change be reflected in any of the ex...
How does the .NET Framework 3.0 relate to the .NET...
What happens to the WinFX technologies?
What is the .NET Framework 3.0 (formerly WinFX)?
System Requirements for Installing .NET Framework ...
What Improvements does WCF offers over its earlier...
What are WCF features and what communication probl...
What contemporary computing problems WCS solves?
What contemporary computing problems WPF solves?
What is XAML ?
What is XBAP?
What is a service contract ( In WCF) ?
In terms of WCF, What is a message?
In terms of WCF, What is a service?
In terms of WCF, What is an endpoint?
In terms of WCF, What is an application endpoint?
In terms of WCF, What is an infrastructure endpoin...
In terms of WCF, What is an address?
In terms of WCF, What is an address?
In terms of WCF, What is binding?
What is an operation contract?
What is a message contract?
What is a fault contract?
N WCF, what do you understand by metadata of a ser...
What is password fatigue?
What are activities in WWF?
Jobs in USA ->NET
Learn .NET Framework 3.0
Download Microsoft .NET Framework 3.0 Redistributa...