UNIX/Linux Programming - December 2009 (Page 2)

Why does the following program leak memory?
 
#include <glib.h> int main() { return 0; } When I run this program through valgrind, I get: ==7846== Memcheck, a memory error detector ==...
[2 replies] Last: Ooooh... I think someone found a bug in glibc..? (by chrisname)
by luq
curlpp on Ubuntu 9.04
 
Hey, I've managed to install libcurl and curl on my Ubuntu 9.04 system. But now I want to install curlpp @ www.curlpp.org. But I can't find any reference on ...
[14 replies] Last: Sorry I haven't kept up with this thread. Anyway, post the command li... (by seymore15074)
by c00get
Handle query strings using socket programming
 
Hi, I need to make a daemon which listens to port 81 for messages like http://localhost/message?command=move&dir=left So far I made a daemon which serves as a ...
[7 replies] Last: I finally managed to get the query string. I wasn't reading/parsing th... (by c00get)
by helios
CPU count
 
Is it safe to assume this will work everywhere? sysconf(_SC_NPROCESSORS_ONLN) Does the returned value include only physical processors or also logical?...
[2 replies] Last: That's fine, I could interpret <1 as 1 (threading disabled). I only co... (by helios)
Address already in use error
 
Hi Guys, I have a code for server using sockets. When I close the server process using Ctrl+C and then try to restart is again, I get bind: address already...
[9 replies] Last: Thanks a lot jsmith. (by kevinchkin)
Request on Advanced Game Programming Techniques, Online Gaming
 
Hello, my name is Aditya Sadhula and I am working on developing and programming for games, having 2+ years experience. Now I want to learn more about Advanced G...
[2 replies] Last: Hello Aditya, If you just do a web search you can find several web ... (by tarun321)
C++ sounds LINUX
 
Good day to all. I would like to ask some help regarding C++ sounds. I read some codes in playing sounds using C++ and this codes was based on WINDOWS. I wou...
[1 reply] : Of course there is. I can think of way to many ways to do this. You ca... (by closed account S6k9GNh0)
by vijkrr
what means the highest socket desc argument on select
 
hi, i'm new to socket programming. for the select API in socket programming the 1st agrument is an integer and its highest socket desc + 1. How to find the...
[4 replies] Last: That's not really a complete example, assumptions have to be made abo... (by kbw)
by vijkrr
Invalid pointer read on select
 
hi all, i'm getting Invalid pointer error on the select statement on socket Programming. here is the code while(1) { readme(); } readme() { s...
[3 replies] Last: Can you post a minimal complete example that reproduces the problem? (by kbw)
December 2009 Pages: 12
  Archived months: [nov2009] [jan2010]

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