Code Monkey home page Code Monkey logo

ser_clic-'s Introduction

SER_CLIC

A client-server architecture in C++ using sockets to transfer multiple files


LINUX:

The default gcc compiler that comes with the linux distributions is enough to compile and run the code.

Server : g++ -std=c++17 -pthread server.cpp -o server

Client : g++ -std=c++17 -pthread client.cpp -o client

Usage : ./server ./client <ipaddress/address_name>

WINDOWS:

The visual-c++ compiler can be used to compile and run the code without any additional libraries. While using the mingw or any gcc based compilers the winsock and other libraries has to be mannualy linked using explicit lwsock32 and lws2_32 flags for the compiler args

Server : g++ server.cpp -o server.exe -lwsock32 -lws2_32

Client : g++ client.cpp -o client.exe -lwsock32 -lws2_32

Usage : server client <ipaddress/address_name>

NOTE:

The code has been run and tested on linux and windows systems. But porting to other operating systems is relatively easy. If any assistance needed feel free to raise a ticket.

ser_clic-'s People

Contributors

yogeshraja avatar yogeshwaranraja avatar

Watchers

 avatar

ser_clic-'s Issues

File transfer in windows is not working

Everything works just fine when the code is run on Linux, but when i try to run the code on windows everything compiles and starts up fine but during transfer first the number of files is transferred followed by each file. To receive each files first the length of the filename is received and followed by the filename then the size of the file is transferred in bytes followed by the file. But in windows for some reason the program breaks while receiving the filename length and i could not find the reason

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.