Skip to content

sctanner/TwoWayMesgPractice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TwoWayMesgPracticce

A java program that implements client/server messaging using ports

To run the program, first sart the server by running the following command:

java TwoWayMesgServer.java 50000

50000 is an example port number.

Then, in another terminal, run the following command to launch client:

java TwoWayMesgClient.java localhost 50000

This will connect the two terminals. Start by typing a message in the client terminal, then pressing enter. The message will show up on the server. The two terminals can continue sending messages back and forth until the user terminates the program or types ctrl+d.

To run the single file version: run java asMethods.java 50000 to start a server and java asMethods.java localhost 50000 to run a client.

About

A java program that implements client/server messaging using ports

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages