me_newbie's Profile
Reputation: 0
Apprentice
- Group:
- Members
- Active Posts:
- 22 (0.06 per day)
- Joined:
- 03-May 12
- Profile Views:
- 140
- Last Active:
May 21 2012 03:26 AM- Currently:
- Offline
Previous Fields
- Dream Kudos:
- 0
Posts I've Made
-
In Topic: Handling Multiple connections
Posted 18 May 2012
And why there is no create(), connect(), read(), write() methods for client
Best Regards,
Ewa -
In Topic: Handling Multiple connections
Posted 18 May 2012
JackOfAllTrades, on 18 May 2012 - 07:49 AM, said:#1 & #3: That's the socket the client is talking to you on.
#2: No idea what the -1010 is. It would normally be the PID (process ID) of the forked child process, but I've never seen a negative PID. Either you wrote the code and you know, or copied and pasted the code from somewhere where -1010 is a meaningful value. I suspect it's the latter, so tell us where you got the code and we'll try to figure out what it's supposed to mean.
How fork() works, from the great Beej
Hi
i followed this tutorial
http://www.tutorials...ver_example.htm
but i'm changing the values to see the behavior but it is not doing anything even after removing, my program is running nice... i guess it was a useless piece of code
anyways can you explain why we are closing these things
1. close(m_sockfd);
2. close(newsockfd);
3. difference between child process and parent process and why we handle them
and i know about the fork() return values and if pid == 0 means it is child process if pid == -1/ < 0 there is an error. else it is parent process.
Regards,
Ewa -
In Topic: Breaking input string into tokens
Posted 16 May 2012
jimblumberg, on 16 May 2012 - 04:46 AM, said:Your problem with your fourth token is being caused by the way your loop is structured. You are using the stream failure to control the loop, but your extraction operation which will cause this failure is after your check. To solve this problem use the extraction it's self to control the loop.
string sub; while(iss >> sub){ cout << "token " << count + 1 << ": " << sub << endl; count = count + 1; }
Jim
Hi Jim and simeesta !
Thanks Jim for explaining the problem, it solved my problem and thanks to Simeesta for providing a solution, i would make it without your help, you guys take care
Regards,
Ewa -
In Topic: Reading file into Array
Posted 10 May 2012
jimblumberg, on 10 May 2012 - 05:39 AM, said:Your program seems to work correctly for me. I printed the results with the following code:
for(size_t i = 0; i < allData.size(); ++i) { for(size_t j = 0; j < allData[i].size(); ++j) std::cout << allData[i][j] << " "; std::cout << std::endl; }
Jim
Thanks for your reply it was very fruitful... thumbs up to you Jim -
In Topic: Analyzing buffer text
Posted 9 May 2012
Hi turboscrew!
thank you very much that was really helpful.... your help is appreciated
Kind Regards,
Ewa
My Information
- Member Title:
- New D.I.C Head
- Age:
- Age Unknown
- Birthday:
- Birthday Unknown
- Gender:
Contact Information
- E-mail:
- Private
Friends
me_newbie hasn't added any friends yet.
|
|


Find Topics
Find Posts
View Reputation Given
|
Comments
me_newbie has no profile comments yet. Why not say hello?