Search:

Type: Posts; User: EverydayDiesel

Page 1 of 6 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    1
    Views
    379

    Weird Conversion Error

    I am trying to compile the example code located here libs/beast/example/http/server/small/http_server_small.cpp - 1.70.0 but I am getting an error right out of the box that I am unsure how to fix.
    ...
  2. so the data comes to me as...

    so the data comes to me as "2019-05-16T09:30:00-04:00" and i can make it "2019-05-16T09:30:00-0400" but I am still lost on how to convert it to my current timezone




    const char *time_details...
  3. 2019-05-16T09:30:00-04:00 to my understanding is...

    2019-05-16T09:30:00-04:00 to my understanding is in the RFC 822/ISO 8601 standard

    ISO 8601 - Wikipedia

    A single point in time can be represented by concatenating a complete date expression, the...
  4. Converting Time Zones To Central Standard Time (CST)

    I seem to be going in circles here and I would greatly appreciate any help I can get.




    I have a date that comes in as "2019-05-16T09:30:00-04:00" as an example. (I wont know the timezone in...
  5. Replies
    2
    Views
    445

    Converting Strings To Doubles

    Hello,

    I need to convert a string into a large number (I am using double because it has to have decimal places)



    double ConvertStringToDouble(string s)
    {
    try
    {
  6. Replies
    6
    Views
    3,254

    So I have been working on this and I am at a...

    So I have been working on this and I am at a point now where maybe you guys can help me.


    Essentially what I would like it to do is return a variable that, for this purpose, contains 'hello...
  7. Replies
    6
    Views
    3,254

    Thank both of you for your responses! I will...

    Thank both of you for your responses! I will look into it! Thanks again
  8. Replies
    6
    Views
    3,254

    http server using boost asio

    Hello,

    I want to write a console application that
    1. has a http server (listener) that can receive data
    2. take that data and push it to several nodes
    3. every 10 minutes call an external...
  9. Replies
    7
    Views
    527

    do they not do the same thing? sorry for the...

    do they not do the same thing? sorry for the dumb question, I am just trying to learn.
  10. Replies
    7
    Views
    527

    thanks for helping me, it was a boost version...

    thanks for helping me, it was a boost version mis-match

    have a good day!
  11. Replies
    7
    Views
    527

    thank you for taking the time to reply. I...

    thank you for taking the time to reply.

    I think I got it converted? But why am I getting the three errors?

    // CServer.h


    #ifndef CSERVER_H
    #define CSERVER_H
  12. Replies
    7
    Views
    527

    Please Explain This 'Constructor'

    Hello and thank you for reading. To be honest I have never seen a constructor like this (with a colon)



    #ifndef CSERVER_H
    #define CSERVER_H


    #include <iostream>
    #include <boost/bind.hpp>
  13. Thank you for the replys, I dont know if it is...

    Thank you for the replys, I dont know if it is the lack of sleep or what but it still prints garbage



    string get_md5_sum(unsigned char* md)
    {
    stringstream ss;
    for(int i = 0; i...
  14. Storing the output of printf into a string

    Hello

    I have a procedure that gets an md5sum result and prints it out to console. How can I get the results into a string?


    This is what I am looking for
  15. thanks for the reply, yes i do have root

    thanks for the reply, yes i do have root
  16. Getting Console / Terminal Text With PID

    Hello,

    I have a linux pc that will run a console terminal (3rd party app) that I want to monitor the output of and alert me of certain conditions.

    Is there a way to get the output of the...
  17. the above can be fixed by changing sleep(1000) to...

    the above can be fixed by changing sleep(1000) to sleep(1)
  18. can you tell me why this does not count like I...

    can you tell me why this does not count like I was expecting it to?








    using boost::asio::ip::tcp;
  19. Std Threading In A Windowed Application

    Hello,

    I am trying to write a gui application that is threaded and I am trying to write a tcp listner. I want the tcp listner to run on a different thread but I am having some trouble.

    For...
  20. Replies
    6
    Views
    1,996

    is there a better alternative to getting the...

    is there a better alternative to getting the char* to a string?

    They used this (which is great for writing out to the console but I need it in a string variable)


    cout.write(reply,...
  21. Replies
    6
    Views
    1,996

    Thank you! strlen worked for fixing the size. ...

    Thank you! strlen worked for fixing the size.

    I cant thank you enough for your help!
  22. Replies
    6
    Views
    1,996

    Thank you for the reply. I have been trying to...

    Thank you for the reply. I have been trying to get this to work but so far I cannot.


    No matter what I do, the same amount of bytes is returned back to the client as was originally read. What...
  23. Replies
    6
    Views
    1,996

    Adding To A char array

    Hello,

    I have a client /server example that I am trying to modify. The client will send a message to the server and then echo it back to the client.

    I want to append a string to the message...
  24. Replies
    2
    Views
    1,332

    THANK YOU very much!!!

    THANK YOU very much!!!
  25. Replies
    2
    Views
    1,332

    Converting void* to rtnl_link_stats

    Hello I took the code from sysinfo(2) - Linux manual page and I have made no modifications but I am getting this error



    error: invalid conversion from ‘void*’ to ‘rtnl_link_stats*’...
Results 1 to 25 of 141
Page 1 of 6 1 2 3 4