Developing WinSock Applications for a Mobile Environment- Code Sample

by Lester Memmott
Engineering Manager, Software Enabling Group


Sockets Programming With Mobilized Software - Code Sample

Why Should I Care About This Code Sample?
The following source code demonstrates the usage of the WinSock API for writing a client server application. It implements both the TCP and UDP protocols from the IP family. In the case of UDP it demonstrates two ways for a client to use the WinSock API. Finally it demonstrates the use of setsockopt() in order to prevent recvfrom() from having in an environment where network connectivity is transient.

Target Audience
General interest, general application developer for mobile devices

Sample Category
Complete project including client and server components.

Implementation Language
C

Target Hardware & Software Platforms

Hardware Systems: IA-32 platforms
Operating Systems: Microsoft Windows* 2000, and Windows XP
Compilers: Microsoft Visual Studio* 6.0 and .Net


Download the source code

Whitepaper: Developing WinSock Applications for a Mobile Environment

 

Per informazioni complete sulle ottimizzazioni del compilatore, consultare l'Avviso sull'ottimizzazione