Author |
Topic: again, OS and multithreaded basics (Read 673 times) |
|
puzzlecracker
Senior Riddler
Men have become the tools of their tools
Gender:
Posts: 319
|
|
again, OS and multithreaded basics
« on: Jan 7th, 2005, 1:01pm » |
Quote Modify
|
what is the differnce between fd (file descripter) and fopen pointer? How do you manage multiple sockets in C++ (what are the systems called used, etc)?
|
|
IP Logged |
While we are postponing, life speeds by
|
|
|
TenaliRaman
Uberpuzzler
I am no special. I am only passionately curious.
Gender:
Posts: 1001
|
|
Re: again, OS and multithreaded basics
« Reply #1 on: Jan 8th, 2005, 2:47am » |
Quote Modify
|
Quote:what is the differnce between fd (file descripter) and fopen pointer? |
| The pointer given by fopen is actually a pointer to FILE structure. The file descriptor is simply an integer. The system maintains a table of information of all the files that have been opened. The file desciptor points the entry in this table. Quote:How do you manage multiple sockets in C++ (what are the systems called used, etc)? |
| I dont know doing it in C++ is any different than we do it in C. A structure called socketaddr_in is available for this purpose. You can read abt them here, http://en.wikipedia.org/wiki/Berkeley_sockets The rest i will leave to you to find from man pages. -- AI
|
|
IP Logged |
Self discovery comes when a man measures himself against an obstacle - Antoine de Saint Exupery
|
|
|
|