RE: concurrent timers on linux

2007-11-10 Thread Rafi Cohen
mspec.tv_sec? Thanks, Rafi. -Original Message- From: guy keren [mailto:[EMAIL PROTECTED] Sent: Sunday, November 11, 2007 12:23 AM To: Rafi Cohen Cc: 'Gilad Ben-Yossef'; linux-il@cs.huji.ac.il Subject: Re: concurrent timers on linux i think you have a simple bug in your code that

RE: concurrent timers on linux

2007-11-10 Thread Rafi Cohen
7;s first argument. I did not try it yet, but may be this could lead to a better solution. Ah, very lengthy message, still clear I hope. I'll be glad to continue and receive assistance. Thanks Gilad, Rafi. -Original Message- From: Gilad Ben-Yossef [mailto:[EMAIL PROTECTED] Sent: Satur

concurrent timers on linux

2007-11-09 Thread Rafi Cohen
Hi list, I raised this question a long time ago when I had to write my application and got a couple of suggestions. I chose my strategy, but it seems I still have major problems. Terefore, I return to you to ask for more advise. My application is a multithread one, for which each thread has it's ow

RE: integrating ftp client within an application on linux

2007-10-25 Thread Rafi Cohen
/2007, Rafi Cohen <[EMAIL PROTECTED]> wrote: Hi, I'm writing an application in C on linux that one of it's components is the ability to upload and download files to/from an ftp server. I would like to know if there is an open source ftp api that I can integrate in my application?

integrating ftp client within an application on linux

2007-10-25 Thread Rafi Cohen
Hi, I'm writing an application in C on linux that one of it's components is the ability to upload and download files to/from an ftp server. I would like to know if there is an open source ftp api that I can integrate in my application? Well, I foud one -- libncftp, but after evaluation of 30 days,

RE: multithread problem

2007-05-22 Thread Rafi Cohen
ginal Message- From: guy keren [mailto:[EMAIL PROTECTED] Sent: Monday, May 21, 2007 1:49 PM To: Rafi Cohen Cc: [EMAIL PROTECTED] Org. Il Subject: Re: multithread problem Rafi Cohen wrote: > Hi, I'm asking for further assistance for yet another problem I > encounter with my pr

multithread problem

2007-05-21 Thread Rafi Cohen
Hi, I'm asking for further assistance for yet another problem I encounter with my project, this time concerning multithreads. In order to explain my problem, I'll write a short example: main: pthread_mutex_lock(&mut); flag = 0; pthread_cond_broadcast(&cond); printf("after signal: flag=%d\n", flag);

RE: need some help with tcp/ip programming

2007-05-15 Thread Rafi Cohen
Hi Nadav, well, in my case I do not have thousands of concurrent connections, about 20-30 only. However, in some cases the input from those sockets is actually queries to a database and it may also end in operations on this database. Not a heavy database, but still insert/delete/update is done occa

RE: need some help with tcp/ip programming

2007-05-15 Thread Rafi Cohen
Hi Shachar, can you please give more detailed explanation why a thread per socket is not a wise idea? Not that I'm in a hurry to impplement this way, but I'll give you an example where I thought this could be a solution for me. One of the requirements of my project asks that my application, when it

RE: need some help with tcp/ip programming

2007-05-15 Thread Rafi Cohen
Hi Guy, well, to continue your terminology I feel not only foolish but a total moron, since I was not aware at all of this book. I'll be glad to receive a reference to this book in order to become cleverer. After all, this is a desire of any pprogrammer, if he does not already feel so beforehand. B

RE: need some help with tcp/ip programming

2007-05-14 Thread Rafi Cohen
r the most valuable information, Rafi. -Original Message- From: guy keren [mailto:[EMAIL PROTECTED] Sent: Monday, May 14, 2007 11:18 PM To: Rafi Cohen Cc: '[EMAIL PROTECTED] Org. Il' Subject: Re: need some help with tcp/ip programming (rafi - your quoting mixes your text with mine

RE: need some help with tcp/ip programming

2007-05-14 Thread Rafi Cohen
L PROTECTED]> wrote: Rafi Cohen wrote: > Reading some documentation on tcp/ip programming, I had the impression > that the select mechanism should detect such remote disconnect event, > thus enabling me to make a further "read" from this socket which should > end in rea

RE: need some help with tcp/ip programming

2007-05-14 Thread Rafi Cohen
Hi Guy Rafi Cohen wrote: > Hi, as a pproject for a company I'm writing a tcp/ip application on > linux using C language. ah welcome, welcome to the pleasure dome... Hmm, thanks for your "warm" greetings. > My application has 2 connections as client to remote servers and

need some help with tcp/ip programming

2007-05-14 Thread Rafi Cohen
Hi, as a pproject for a company I'm writing a tcp/ip application on linux using C language. My application has 2 connections as client to remote servers and is by itself a server "accepting" remote client connections. I'm using select() mechanism to manage all those connections. Everyting works nic

RE: implement timers in a multi thread application

2007-01-08 Thread Rafi Cohen
nt this. Thanks, Rafi. > -Original Message- > From: Shachar Shemesh [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 09, 2007 9:00 AM > To: Rafi Cohen > Cc: [EMAIL PROTECTED] Org. Il > Subject: Re: implement timers in a multi thread application > > > Ra

RE: implement timers in a multi thread application

2007-01-08 Thread Rafi Cohen
Sent: Tuesday, January 09, 2007 1:23 AM To: Linux-IL Subject: Re: implement timers in a multi thread application On 09/01/07, Rafi Cohen <[EMAIL PROTECTED]> wrote: Gilad, thank you very much for your advise. I tend to implement it, but I still remain with the following questio

RE: implement timers in a multi thread application

2007-01-08 Thread Rafi Cohen
-Yossef > Sent: Monday, January 08, 2007 8:52 PM > To: Rafi Cohen > Cc: [EMAIL PROTECTED] Org. Il > Subject: Re: implement timers in a multi thread application > > > Rafi Cohen wrote: > > Hi, I need some advice implementing timers in a multithread aplication > &

implement timers in a multi thread application

2007-01-07 Thread Rafi Cohen
Hi, I need some advice implementing timers in a multithread aplication on linux (suse 9.3, kernel 2.6.11). The application is written in C. At first, I chose to use alarm() with a handler for SIGALRM, but after some tests I concluded tht it's not wise to use this in a multithread application, si

RE: FW: primary address of devices

2006-12-24 Thread Rafi Cohen
ature of keyboard. Thanks, Rafi. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Ori Idan Sent: Sunday, December 24, 2006 9:22 AM To: Rafi Cohen Cc: [EMAIL PROTECTED] Org. Il Subject: Re: FW: primary address of devices 1. When issuing an ibfi

FW: primary address of devices

2006-12-23 Thread Rafi Cohen
nobody answered me up to now. I hope somebody on this list may help me. I forward this message and another one, relating to 2 different subjects. Thanks, Rafi. -Original Message- From: Rafi Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 1:08 PM To: [EMAIL PROTECTED

FW: linux-gpib driver and select mechanism

2006-12-23 Thread Rafi Cohen
-Original Message- From: Rafi Cohen [mailto:[EMAIL PROTECTED] Sent: Monday, December 18, 2006 12:45 PM To: [EMAIL PROTECTED] Sourceforge. Net Subject: linux-gpib driver and select mechanism Hi, if my application listens both to rs232 and gpib, is it possible to use the

RE: this may sound somewhat off-topic, but please read

2004-12-26 Thread Rafi Cohen
t off-topic, but please read > > > On Sun, Dec 26, 2004 at 03:14:43AM +0200, Rafi Cohen wrote: > > > 3. Concerning Linux: there are 2 options, one being a text only > mode and the > > other, X-Windows. > > For the text mode, there is an open source driver supporting > n

FW: this may sound somewhat off-topic, but please read

2004-12-26 Thread Rafi Cohen
Hi, after I sent a message to Ira answering his questions tome, I noticed that he sent his message to the list. So, I'm forwarding my answers as sent to him. Rafi. > -Original Message- > From: Rafi Cohen [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 26, 2004 3:20 AM >

RE: this may sound somewhat off-topic, but please read

2004-12-25 Thread Rafi Cohen
. > -Original Message- > From: Shaul Karl [mailto:[EMAIL PROTECTED] > Sent: Sunday, December 26, 2004 1:04 AM > To: Rafi Cohen > Cc: linux-il@linux.org.il > Subject: Re: this may sound somewhat off-topic, but please read > > > On Sat, Dec 25, 2004 at 10:02:29PM

this may sound somewhat off-topic, but please read

2004-12-25 Thread Rafi Cohen
Hello, I'm a software engineer and have some years of experience developping in the Unix/Linux environment, both as an employee and a freelancer. Since I always had a computer from the company with Linux already installed, I did not bother installing a Linux system on my home computer. Now,