UNIX/Linux Programming - February 2008

Get IP from sockaddr
 
Hello, I am making a server accepting TCP connections. After I call accept and pass it my sockaddr_in, how can I then figure out the remote IP and put it in...
[1 reply] : sockaddr_in contains a field named sockaddr->sin_addr. But this co... (by xiona)
by mlussi
pthread/while (processor load on 100%)
 
Good Morning. I'm trying to use a while function inside a pthread and have the problem that my processor load of both processors reaches 100% as long as the ...
[2 replies] Last: Hi Andrej As you recognized right it's a part of a game calculation (... (by mlussi)
Clear screen in terminal?
 
I always see threads (not here) about clearing the screen with system(cls); but that is only for windows. What about us *nix people? Is there something lik...
[19 replies] Last: Yeah, it's always the most obvious problems that give the most grief..... (by Duthomhas)
by osburn
NEED SOME HELP
 
I'm new to linux and im trying to compile my code, but I have no idea what im doing....Please HELP (im going gray and bald) PS This is in C not C++ #in...
[6 replies] Last: Cool....thx It works (by osburn)
^d, ^t , ^shift t, etc
 
Can anyone please tell me or give any resource as to how can I write a cplusplus code for getting an input such as ^d and opening a new file or stuff like that....
[1 reply] : You have to set the terminal to "raw" mode. If you are doing this i... (by Duthomhas)
by kathir
Query on
 
hi all, i m using CreateProcess() routine in my dll to run a process on command prompt.currently i m working on VC++ 6.0.(windows XP). Is there any equiv...
[1 reply] : You will need to #include <process.h> and use one of the spawn functio... (by Duthomhas)
linking GSL library
 
hi. i'm pretty much a novice in dealing with UNIX systems, and am currently having a trouble using a library that i downloaded. Without going into the detail ...
[1 reply] : you need to A) have gsl installed properly (this should be covered... (by grdpx)
declaration has no storage class or type specifier
 
Hi All, I am using AIX 32bit with xlC 9.0.0 compiler. I faced following error :- "/usr/vacpp/include/xlocale", line 461: error #77-D: this declaration has no...
[no replies]
store file path in array
 
opps wrong forum
[no replies]
  Archived months: [jan2008] [mar2008]

This is an archived page. To post a new message, go to the current page.