Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

TCP/UDP Server

Description

Simple TCP/UDP server that listens on port 8080 and echos back the received message. This is intended to be used as a simple test server for network programming to demonstrate the use of TCP and UDP sockets on the same port at the same time.

Usage

Build and run the server (select either DualSocketServer or MinaDualSocketServer):

mvn clean package
java -jar target/dualserver-1.0-SNAPSHOT.jar [DualSocketServer|MinaDualSocketServer]

That will start the server listening on port 8080 for both TCP and UDP connections; it will echo back any message received.

Testing

TCP test with netcat

nc localhost 8080

UDP test with netcat

nc -u localhost 8080

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages