Thank you all! :) I will see what way fits the best for me.
Type: Posts; User: crisis
Thank you all! :) I will see what way fits the best for me.
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? ;)
Well... Ehm... Yes. Read my first post again ;)
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"
alpine does a DNS request and then starts to communicate with the SMTP server like i do.
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];
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...
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
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!
...
thank you.
but i just want to get the timestamp as a string - not a formatted, human readable time
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
thank you both!
this works:
ifstream rawavg("/proc/loadavg");
string buffer;
getline(rawavg,buffer);
cout << buffer << "\n";
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):
...