Skip to content

Emulating custom TCP or UDP Server and respond with a custom message

Notifications You must be signed in to change notification settings

maxng07/Emulating-TCP_UDP-Server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Emulating TCP and UDP Server

This is a  module for emulating a TCP or UDP Server. It has an external configuration file, config.json that takes in parameters for ther server.
CONN_HOST - The hostname or IP address of the server or FQDN
CONN_PORT - The TCP or UDP portnumber
CONN_TYPE - TCP or UDP
MSG - The customised message the server will send back to the connecting client

Starting up the server, it listens on the configured port and waits for connection. It responds back with the customised message if the connecting client sends a message, then the connection is closed. This module can be used together with Emulating TCP_UDP Client to walk through a typical network transport connection. The module can also act as a Client connecting home.
A quick way to test is do a go run tcpserver.go instead of build or install.

And a quick way to test it is by using telnet. An example from a connecting client using telnet
telnet localhost 8888

Or use the Emulating TCP_UDP Client.

About

Emulating custom TCP or UDP Server and respond with a custom message

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages