Giter Site home page Giter Site logo

Comments (3)

ChristianGabs avatar ChristianGabs commented on May 19, 2024 1

So let's verify your issues,

Step 1 ) let clone the project

Developments-iMac:test root# pwd
/Users/cristiang/test
Developments-iMac:test root# git clone https://github.com/eminfedar/async-sockets-cpp.git .
Cloning into '.'...
remote: Enumerating objects: 381, done.
remote: Counting objects: 100% (45/45), done.
remote: Compressing objects: 100% (34/34), done.
remote: Total 381 (delta 26), reused 21 (delta 11), pack-reused 336
Receiving objects: 100% (381/381), 332.62 KiB | 4.82 MiB/s, done.
Resolving deltas: 100% (216/216), done.
  1. Let install our headers
Developments-iMac:test root# ls
.git            .gitignore      LICENSE         README.md       async-sockets   examples        img
Developments-iMac:test root# cd async-sockets/
Developments-iMac:async-sockets root# ls
include         install.sh      remove.sh
Developments-iMac:async-sockets root# chmod +x install.sh
Developments-iMac:async-sockets root# ./install.sh
Info: The library has been copied to -> /usr/local/include

Example usage:
#include <async-sockets/tcp-client.hpp>
Developments-iMac:async-sockets root# ls /usr/local/include/async-sockets/
basesocket.hpp  tcpserver.hpp   tcpsocket.hpp   udpserver.hpp   udpsocket.hpp
Developments-iMac:async-sockets root#
  1. Let Compile one of the example
Developments-iMac:test root# ls
.git            .gitignore      LICENSE         README.md       async-sockets   examples        img
Developments-iMac:test root# cd examples/
Developments-iMac:examples root# ls
CMakeLists.txt  Makefile        tcp-client.cpp  tcp-server.cpp  udp-client.cpp  udp-server.cpp
Developments-iMac:examples root# make tcp-server
g++ --std=c++11 tcp-server.cpp -I../async-sockets/include -lpthread -o tcp-server
Developments-iMac:examples root# ls
CMakeLists.txt  Makefile        tcp-client.cpp  tcp-server      tcp-server.cpp  udp-client.cpp  udp-server.cpp
Developments-iMac:examples root# ./tcp-server
New client: [172.30.1.21:54006]
172.30.1.21:54006 => hi

172.30.1.21:54006 => ▒▒▒▒
Socket closed:172.30.1.21:54006 -> 0

If you provide more info on your steps I will be more happy to help

from async-sockets-cpp.

eminfedar avatar eminfedar commented on May 19, 2024

I made it header-only (ac946e4) so no need to use .so libraries.

I don't have macOS, if someone update the install.sh file to adapt macOS too, I will gladly merge it.

from async-sockets-cpp.

eminfedar avatar eminfedar commented on May 19, 2024

Thanks for your clear explanations :) @ChristianGabs

from async-sockets-cpp.

Related Issues (20)

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.