Skip to content

karthikeayan/socket-ns-assignment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socket-ns-assignment

NOTE: WORKS ONLY IN LINUX

how to compile:

gcc -o server server.c
gcc -o client client.c

how to execute:

./server bind_ip port work_directory
(eg, if client & server are same machine) ./server 127.0.0.1 5001 /tmp
(eg, if client & server are different machine) ./server 192.168.1.7 5001 /tmp
./client server_bind_ip port work_directory
(eg, if client & server are same machine) ./client 127.0.0.1 5001 /tmp
(eg, if client & server are different machine) ./client 192.168.1.7 5001 /tmp

note: do not add / at the end of work_directory, correct: "/tmp", wrong: "/tmp/"

mandatory files should be available in server work_directory:

  • password.db
  • details.txt (hardcoded in code), this will be copied to client

Issue/Bugs/Improvements:

  • Memory not handled properly
  • Client writes into file by adding "DATA " in front of file content

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages