/tcp_stress_test

A example implemented in C to send packet for stress test on remote server.

Primary LanguageC

Purpose

This project is built to send data as quickly as possible through multi-threads.

How to use

1. Build

Execute script build.sh from project. It will create a.out by default.

2. Execution

Program will receive parameters as appointed sequence, e.g.
a.out 127.0.0.1 8888 2 'hello world'
a.out: the executable program
127.0.0.1: target host
8888: target port number
2: threads number that you want to create
hello world: message you want to send to host. Use ' if you want to send Ctrl letters such as '$hello world;ok!'

Work around

1. Keep selfish thread data

2. Terminate a thread gracefully if err occurs