Use your forum account to login.

LOGIN

TOP Contributors

  1. MikroElektronika Team (100 codes)
  2. Dany (44 codes)
  3. NART SCHINACKOW (34 codes)
  4. Alcides Ramos (33 codes)
  5. Agent Wolfz (14 codes)
  6. Andrew Hazelden (13 codes)
  7. Roman Black (11 codes)
  8. Alberto Trasimeni (11 codes)
  9. Roman Toropov (9 codes)
  10. Rajendra Bhatt (8 codes)

Most Downloaded

  1. Network Ethernet Library (11806 times)
  2. FAT32 Library (8640 times)
  3. Timer Calculator (6594 times)
  4. PID Library (5264 times)
  5. Network WiFi Library (5238 times)
  6. SMS home alarm system (4433 times)
  7. External Memory (4123 times)
  8. mikromedia for PIC18FJ - Examples (3575 times)
  9. microSD click - Example (3510 times)
  10. GPS click - Example (3274 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

C# Windows Application Socket Programming Example

Rating:

Author: NART SCHINACKOW

Last Updated: 2012-06-03

Category: Other Codes

Downloaded: 1054 times

Not followed.

This example has two projects developed using Visual C# 2010 Express edition, it demonstrates network programming using sockets , TCP LISTENERS , TCP CLIENTS, through a simple chat client/server single threaded application. these applications could be useful for understanding how networks are programmed and understand the fundamentals.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "C# Windows Application Socket Programming Example" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "C# Windows Application Socket Programming Example" changes.

Do you want to report abuse regarding "C# Windows Application Socket Programming Example".

  • Information
  • Comments (2)
Download

Download Example [67.48KB]

Version 1.0.0.0

DOWNLOAD LINK RELATED COMPILER CONTAINS
Other Compiler
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

How To Run The Programs:

  1. open the chatclient folder and copy the executable shortcut to your desktop.
  2. open the chatserver folder and copy the executable shortcut to your desktop.
  3. check you network setting and write down your ipv4 address as shown in the figure below
  4. run the chatserver application and write down the ip address then press the listen button
  5. run the chatclient application and write down the ip address then press the connect button
  6. write messages and send with in different pcs

note: the chat client application must connect to the servers applications ip.

for understanding how it works, open both projects and take a look at the code, it is well documented and will help you understand how it runs...

Suggested applications:

you could build a pic web server that listens for connections, on the other side build a windows application (client) that connects to it ...


Demo

Demo

Snap Shot On Configuring Ip Addresses on the same pc.

View full image

Application setup and demo

Application setup and demo

Watch on YouTube

Note: This Project May Be Optimized And Changed Any Time So Stay Tuned

CHECK OUT MY WEBSITE FOR MORE CODES AND PROJECTS

ALSO FROM THIS AUTHOR

SoftWare Uart Library

This is a simple software UART library that could run on any pic without hardware UART module, just copy the two files in your project folder and inculde "SoftWareUart.h" in your source code. the library has many useful routines that could help you communicate with other UART modules.

[Learn More]

SOFTWARE VERSION W5100 (Built In TCP/IP Stack) Module Demo

This is another version of the W5100 ethernet module posted before at LIBSTOCK, the main difference is that you could connect it to any PIC pins, no need to worry about having HARDWARE SPI Any More! instead you could use the hardware SPI (If Available) for anything else.

[Learn More]

Physics Library

This is a simple Physics library that uses the Vector Library in its calculations, till now its has a simple projectile motion which can be simulated easily using the built int functions.

[Learn More]