TOP Contributors

  1. MIKROE (2760 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139223 times)
  2. FAT32 Library (71732 times)
  3. Network Ethernet Library (57114 times)
  4. USB Device Library (47426 times)
  5. Network WiFi Library (43051 times)
  6. FT800 Library (42401 times)
  7. GSM click (29832 times)
  8. mikroSDK (28035 times)
  9. PID Library (26881 times)
  10. microSD click (26196 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:

5

Author: NART SCHINACKOW

Last Updated: 2012-06-08

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Other Codes

Downloaded: 3954 times

Not followed.

License: MIT license  

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 (3)
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

Standard IO LIBRARY

11

This library has standard Input/Output functions which can be used for input Strings And output Strings via hardware UART connection, all you have to do is copy and paste the files Stdio.h And Standard_Io.c into your project folder and include them in to your main source code "Stdio.h".

[Learn More]

W5100 SOFTWARE INTERFACED (SPI) LIBRARY

0

W5100 is an ethernet module with built in TCP/IP STACK from WIZNET, all you need to know is basic information on SOCKET PROGRAMMING and the library will do the rest for you. The library is interfaced with any pic that has enough memory for holding webpages, no need to worry about if the pic has hardware SPI ! its all done via software .

[Learn More]

C# RS232 Library for MCU

0

This is an API developed using Visual C# express edition, it handles all necessary communication with any MCU that has a built in UART or SOFTWARE BIT-BANG UART. this Library contains documentation and an example on how to use it.

[Learn More]