tommystark / hermes Goto Github PK
View Code? Open in Web Editor NEWA lightweight, cross-platform (not yet), thread-safe, asynchronous C++11 network library with no dependencies.
License: MIT License
A lightweight, cross-platform (not yet), thread-safe, asynchronous C++11 network library with no dependencies.
License: MIT License
Thanks for the super easy API.
Operating System: Ubuntu 16.04 LTS ( also on macOS 10.12.3 )
Compiler: gcc 5.4.0.
UDP Server: example hello world using Hermes[1]
UDP Client: Below provided python sample
Issue: I see the UDP server getting stuck/blocked with in 10 seconds.
import socket
IP_PORT = ("127.0.0.1", 27017)
MESSAGE1 = '$' * 1024
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while(True):
sock.sendto( MESSAGE1, IP_PORT )
In example server, I suspected buffer.data() and commented out std::cout line. Still the issue persists.
Hi,
Compiler gives multiple definition error when "hermes.hpp" included multiple times it the project.
Multiple definition error is for two funcitons, hermes::internal::set_io_service(std::shared_ptrhermes::internal::io_service const&)' AND
hermes::internal::get_io_service(int)
Error:-
/tmp/ccJHnjth.o: In function hermes::internal::set_io_service(std::shared_ptr<hermes::internal::io_service> const&)': main.cpp:(.text+0x19b): multiple definition of
hermes::internal::set_io_service(std::shared_ptrhermes::internal::io_service const&)'
/tmp/ccVlB1UB.o:test.cpp:(.text+0x19b): first defined here
/tmp/ccJHnjth.o: In function hermes::internal::get_io_service(int)': main.cpp:(.text+0x1d3): multiple definition of
hermes::internal::get_io_service(int)'
/tmp/ccVlB1UB.o:test.cpp:(.text+0x1d3): first defined here
collect2: error: ld returned 1 exit status
Issue resolved when the closing braces of the namespaces moved from the 865th line to 886 in hermes.hpp.
Find a proper way to release the 8 bytes of the struct addrinfo *addr_infos in the method create_socket
of the socket class.
So far, I am facing an error with valgrind when I am trying to free addr_infos.
error:> addr_infos
points to unaddressable bytes.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.