Search:

Type: Posts; User: crisis

Search: Search took 0.00 seconds.

  1. Replies
    13
    Views
    1,841

    Thank you all! :) I will see what way fits the...

    Thank you all! :) I will see what way fits the best for me.
  2. Replies
    13
    Views
    1,841

    My problem is not that the connection is blocked....

    My problem is not that the connection is blocked. I just don't want the program to stop when a connection is blocked. This usually does not happen - But what if it does? ;)
  3. Replies
    13
    Views
    1,841

    Well... Ehm... Yes. Read my first post again ;)

    Well... Ehm... Yes. Read my first post again ;)
  4. Replies
    13
    Views
    1,841

    I dont know. I just configured alpine to...

    I dont know.

    I just configured alpine to connect to my SMTP server on port 80. It uses a timeout. After about 1 minute i get "Connection timed out"
  5. Replies
    13
    Views
    1,841

    alpine does a DNS request and then starts to...

    alpine does a DNS request and then starts to communicate with the SMTP server like i do.
  6. Replies
    13
    Views
    1,841

    Check SMTP server on startup

    Hey,

    my program requires a working SMTP server. So i do a first check on startup.

    This is the test:



    bool Mail::checkSMTP(){
    char echoBuffer[64];
  7. Replies
    5
    Views
    4,422

    And there is no C++ library for Sockets, right?...

    And there is no C++ library for Sockets, right? Just to make sure that its correct to use the C socket library in my C++ project...
  8. Replies
    5
    Views
    4,422

    thank you very much, CornedBee! :) i am always...

    thank you very much, CornedBee! :)

    i am always not sure when its smart to convert strings to chars because i dont have much experience yet
  9. Replies
    5
    Views
    4,422

    Socket: send stringstream

    Hey everyone,

    i have a working socket connection and want to send a stringstream. But send() does not accept stringstreams.

    What would be the best way to send the stringstream?

    Thank you!
    ...
  10. Replies
    5
    Views
    22,825

    thank you. but i just want to get the...

    thank you.

    but i just want to get the timestamp as a string - not a formatted, human readable time
  11. Replies
    5
    Views
    22,825

    convert time_t to char*

    hey,

    i want to convert a time_t = time(NULL); timestamp to a char*.

    What would be the best way to do that?

    Thank you
    Lennart
  12. Thread: Reading /proc

    by crisis
    Replies
    3
    Views
    6,247

    thank you both! this works: ...

    thank you both!

    this works:



    ifstream rawavg("/proc/loadavg");
    string buffer;
    getline(rawavg,buffer);
    cout << buffer << "\n";
  13. Thread: Reading /proc

    by crisis
    Replies
    3
    Views
    6,247

    Reading /proc

    Hey everyone,

    i want to read in the output of /proc/loadavg. Because this should be handled as a normal file, i thought i could do it this way (open the files, not yet read them):



    ...
Results 1 to 13 of 13