Introduction
TCPMon is a utility that allows the user to monitor the messages passed along in TCP based conversation. It is based on a swing UI and works on almost all platforms that Java supports. The aim of this simple tutorial is to explain how TCPMon works and also to explain some of its features.
Structure and Dependencies
TCPMon has absolutely no dependencies on third party libraries. But some of the UI features rely on JDK 1.4 so TCPMon needs a JRE that is 1.4 or higher.
Usage Patterns
As an Explicit Intermediate
The most common usage pattern for the TCPMon is as anintermediary. It is called explicit since the client has to point to the intermediary rather than the original endpoint in order to monitor the messages. The following figure explains this concept.
In order to start the TCPMon in this configuration one has to provide the host name and the port for the listener in the admin screen. See image below.
Pressing the 'add' button opens up a new tab that allows the messages to be seen as in the following screen
At this point the requester should point to the listener port of the TCPMon instead of the original endpoint. Let us understand this with an example:
Say all messages passed between www.apache.org needs to be monitored.
Step 1 - Add a listener with host as www.apache.org and port as 80. Set the listener to port 8080 which may be any unused port in the local machine
Step 2 - Point the browser to localhost:8080 instead of www.apache.org.
Once the messages start flowing they can be seen in the relevant tab as seen below.
The bottom controls allow the messages to be XML formatted (useful in debugging Web services), save and resend the messages, and also to switch the layout of the message windows.
相关推荐
该项目是一款基于freeRTOS操作系统和STM32F103x微控制器的手机远程控制浴室温度系统设计源码,共包含1087个文件,包括580个C语言源文件、269个头文件、45个汇编源文件、36个数据文件、36个目标文件、35个编译规则文件、28个包含文件、27个文本文件、6个源文件、3个归档文件。此系统通过手机远程实现对浴室温度的有效控制,适用于智能浴室环境管理。
labview程序代码参考学习使用,希望对你有所帮助。
labview程序代码参考学习使用,希望对你有所帮助。
labview程序代码参考学习使用,希望对你有所帮助。
labview程序代码参考学习使用,希望对你有所帮助。