Tag Archives: Socket

C# Websocket programming: the simplest example

Create a winform Application:


Read the rest of this entry »


Posted by on July 23, 2015 in Dotnet/C#, Programming


Tags: , , , , , , , ,

Java Socket handshaking: the simplest example

In an earlier post, I have discussed how to implement socket communication with python. I recently was asked to implement similar functions, but in Java. Here is how I did that.

  • Create a new Java project, let’s name it JSocketClient;
  • Create another Java project, let’s name it JSocketServer;
  • In both projects, create an App class, and add a static Main function respectively:


Read the rest of this entry »

Leave a comment

Posted by on August 20, 2013 in Java, Programming


Tags: , , , ,

Python Socket example: the simplest example

The python socket component is extremely easy to use, and this simplest example demonstrated its typical use. This is simplest, since both the server and client are the local machine:

On the Server Side:


On the Client Side:





  • First run the, and make sure the server is ready to listen/receive sth
  • Then the client send info to the server;
  • After the server received sth, it terminates

That is it.


Downloads source files: |


Posted by on May 23, 2012 in Programming


Tags: , , ,