Receiving Data on an ICMP socket236 (7/15/2009 12:41:54 AM) comp.unix.programmer When receiving on an ICMP socket, (SOCK_RAW with IPPROTO_ICMP), since there is no concept of "port" in the ICMP protocol, how can an application determine that a received packet is not part of some other TCP/UD... Charles
Using execl to execute a daemon460 (4/29/2009 2:53:43 AM) comp.unix.programmer I'm writing a program in C on Linux which includes a module that allows a shell command to be executed on a remote machine. The easiest way to actually execute the command would of course be to simply use the ... chsalvia
Selecting an Interface when Multicasting on Linux236 (4/24/2009 5:43:49 AM) comp.unix.programmer I'm working with a cluster of about 40 nodes running Debian 4. Each node runs a daemon which sits and listens on a multicast IP. I wrote some client software to send out a multicast over the LAN with a clien... chsalvia
Thread starvation with pthreads in Linux?1142 (1/27/2009 5:43:53 PM) comp.unix.programmer I ran into a strange situation using pthreads in Linux 2.6. I was developing a C++ class which contained an array of queues, designed for a multi-threaded environment. In order to maximize concurrency, I deci... chsalvia
min max4107 (9/1/2008 7:41:23 PM) comp.lang.c++.moderated An article from Andrei Alexandrescu got me thinking about the min/max problem a couple of months ago. It's really ridiculous that such a simple concept like max() won't work with 2 different integral types, in... chsalvia
Open Source Philosophy regarding Search Engines1225 (3/13/2008 3:38:48 PM) comp.os.linux.advocacy I have a general question about the Open Source/GNU/Linux philosophy of ethics. The purpose of open source software, besides being free, is that anyone with the interest/knowledge can edit/customize the source... chsalvia
pdflush on Linux329 (2/1/2008 8:39:13 PM) comp.unix.programmer I'm running a server which continuously receives data over a network, processes the data, and stores the processed data in a large database. The database consists of multiple files which are very large ( > 50G... chsalvia
Difficulty debugging with GDB255 (1/28/2008 4:14:58 AM) comp.unix.programmer I'm currently in the processing of debugging a rather large server program, which experiences a segmentation fault every now and then. To solve this problem, I ran the program under GDB. It turns out that it's... chsalvia
Writev system call2245 (1/6/2008 7:57:59 AM) comp.unix.programmer Is there generally a performance advantage in using the writev/readv system calls, rather than simply iterating through an array and calling read/write individually? I would imagine there would be an advantage... chsalvia
Silencing Valgrind Errors230 (12/19/2007 7:11:30 PM) comp.unix.programmer Valgrind will report errors if a program attempts to access uninitialized memory. Normally this is desirable debugging behavior. But, Valgrind does not seem to consider reading from disk a form of initializat... chsalvia
Thread starvation with pthreads in Linux?1142 (1/27/2009 5:43:53 PM) comp.unix.programmer I ran into a strange situation using pthreads in Linux 2.6. I was developing a C++ class which contained an array of queues, designed for a multi-threaded environment. In order to maximize concurrency, I deci... chsalvia(83)
Iterators in Java and C++3744 (4/3/2008 7:12:27 PM) comp.lang.c++ This is a little bit off topic but I hop you'll forgive me. A few days ago some expressed the opinion (in a post I can't find, but it was probably in one of Razii's threads) that Java's iterators were better t... Erik-wikstrom(1881)
Open Source Philosophy regarding Search Engines1225 (3/13/2008 3:38:48 PM) comp.os.linux.advocacy I have a general question about the Open Source/GNU/Linux philosophy of ethics. The purpose of open source software, besides being free, is that anyone with the interest/knowledge can edit/customize the source... chsalvia(83)
pdflush on Linux329 (2/1/2008 8:39:13 PM) comp.unix.programmer I'm running a server which continuously receives data over a network, processes the data, and stores the processed data in a large database. The database consists of multiple files which are very large ( > 50G... chsalvia(83)
Difficulty debugging with GDB255 (1/28/2008 4:14:58 AM) comp.unix.programmer I'm currently in the processing of debugging a rather large server program, which experiences a segmentation fault every now and then. To solve this problem, I ran the program under GDB. It turns out that it's... chsalvia(83)
Composition versus Implementation Inheritance818 (7/28/2007 6:21:26 AM) comp.lang.c++ Most modern sources on C++ design say that composition is usually preferable to implementation inheritance because inheritance tends to lead to problems down the road unless it follows a strict model allowing s... chsalvia(83)
Limit Socket Connections to Local Clients644 (7/16/2007 1:17:26 AM) comp.unix.programmer What is the best way to limit a socket connection to local clients? I implemented this by doing a call to getpeername(), then simply checking if the sockaddr struct is either 127.0.0.1, or 192.168.*.*. Is tha... chsalvia(83)
C versus C++2120 (7/14/2007 2:40:48 PM) comp.lang.c++ I would say that, in general, you don't need to learn C before learning C++. In fact, I would go as far as saying that there's really no reason to learn C at all. Most programming tasks are better handled in ... chsalvia(83)
Available Physical Memory2446 (6/16/2007 4:29:05 AM) comp.unix.programmer A few weeks ago I posted here asking how an application could determine the available memory on a machine running some variety of UNIX. There were basically two types of responses: 1. Those who scoffed at the... chsalvia(83)
Get Available System Memory2931 (5/9/2007 5:30:51 AM) comp.unix.programmer Is there a system call that returns the amount of currently available system memory? I realize it may be different depending on the flavor of UNIX. ... chsalvia(83)