Skip to content

antonia-marin/tcp-file-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

tcp-file-server

It is a project of a TPC custom protocol to send files between two or more clients in specific channels.

1. TCP custom protocol:

Protocol based on commands, the client would send the permitted commands to subscribe to specific channels, look at the available channels, send a file or quit.

2. Server

The server handles the client's request. It listens to a TCP port and is designed thinking on the TCP custom protocol to understand the protocol commands.

3. Client

The client is a go terminal program, it allows you to connect to the sever, subscribe to a specific channel, and send or receive files.

Client input commands

  • /subscribe subscribe a channel, if channel not exist it will be created.
  • /channels list the available channels.
  • /send <filepath> send a file to everyone in the channel.
  • /quit disconnects from the file server.

Client example

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published