Code Monkey home page Code Monkey logo

hermes's People

Contributors

chambo-e avatar tommystark avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

hermes's Issues

UDP Hello World Server is getting stuck

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.

Multiple definition of hermes::internal::set_io_service(std::shared_ptr<hermes::internal::io_service> const&)

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.

[tcp][udp] socket - free addrinfo

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.

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.