This version is a recompiled qt project source file with cmake, released to my warehouse, need to install homrebrew first. There are links in the article.

Sokit is a very simple and easy to use TCP and UDP debugging tool. It is mainly used for professional network management. It can easily view the data on the network and effectively receive, send, and forward TCP or UDP packets. Most versions on the web are based on Windows, but Linux can also be compiled.

Main features

  1. The server mode is used to listen to local ports, receive external data packets, and reply customized data
  2. The client mode is used to connect to the server, send custom packets, and receive remote reply data
  3. The forwarder mode is used to listen on the local port and send the received data packets to the specified remote server. The forwarder mode is also used to insert user-defined data into the forwarding data flow and send the data packets to double forwarding
  4. Supports sending ASCII string data, as well as raw bytes in hexadecimal format, with no limit on the number of characters sent at a time
  5. The data received is displayed in both formats

Sokit Data input format

Characters in the edit box of the sending area are sent according to ASCII values (multi-byte characters are encoded in UTF8). If you want to send raw hexadecimal data, put the ASCII representation of the corresponding value in square brackets. For example, [FF AB CD 12 12] will actually filter out the square brackets themselves, as well as the space characters in them. (Use two consecutive [[to represent the [character itself))

The installation

First of all, homebrew should be installed. If you have not installed, please look at it

Homebrew regular use tutorial

Here let me first install a force, promote their own warehouse, although only a few packages: Github address

  1. Install the SAKA warehouse
brew tap rangaofei/saka
Copy the code

And then you install the software

brew install sokit
Copy the code

Because it relies on Qt, the installation will be a little slower. After the installation succeeds, run the following command:

sokit
Copy the code

Startup interface:

Test the Socket communication interface:

Special thanks to

The tool first thanks sinpolib, which he built with Qt, which I just recompiled and ported to Homebrew for MacOS.

At the same time, I would like to thank my group friend Kong Huai, who helped me test the BREW installation.

I also want to thank the Nuggets for being the first to mention the compilation problem.