Help with confMAX_DAEMON_CHILDREN, need to reserve a few daemons for outgoing mail

I have set confMAX_DAEMON_CHILDREN to 50 on our sendmail server.  But do to
this Virus going arround, it has caused a denial of service since it has
take up all 50 slots.  I need an option to reserve a percentage of these
slots, so that we can send out mail, and to also receive mail.

My ideal is to add an option to sendmail (confRESERVE_DAEMON_CHILDREN, ?)
that would allow me to reserve a portion of the confMAX_DAEMON_CHILDREN, and
then use a file (or the access file) to specify which mail servers or IP
addresses are allowed to use the reserved daemons.

Is there a patch that implements this?

Where should I look in the sendmail sources to implement this option?

Scot


0
Zxycba
8/20/2003 11:29:48 PM
comp.mail.sendmail 13479 articles. 0 followers. jfretby (35) is leader. Post Follow

5 Replies
172 Views

Similar Articles

[PageSpeed] 56
<Zxycba> wrote in message news:1061422312.670804@WBIw009.westbend.net...
> I have set confMAX_DAEMON_CHILDREN to 50 on our sendmail server.  But do
to
> this Virus going arround, it has caused a denial of service since it has
> take up all 50 slots.  I need an option to reserve a percentage of these
> slots, so that we can send out mail, and to also receive mail.
>
> My ideal is to add an option to sendmail (confRESERVE_DAEMON_CHILDREN, ?)
> that would allow me to reserve a portion of the confMAX_DAEMON_CHILDREN,
and
> then use a file (or the access file) to specify which mail servers or IP
> addresses are allowed to use the reserved daemons.
>
> Is there a patch that implements this?
>
> Where should I look in the sendmail sources to implement this option?
>
> Scot
>
>

My solution, although not for everyone, is to run an MX server that is not
the primary server for the ISP. The incoming MX is the filter server with
the dnsbls and HSubject: $>Check_Subject checks, so outside servers may only
experiance a delay in having their mail delivered, and local (dialup and
DSL) users always have smtp service since the filter box is the one taking
the beating. A quick dns change if the filter has a config problem while
you're doing maintenance is all that is needed.

Tim
Glinx Internet / Tallships Online


0
timj1 (4)
8/21/2003 12:38:17 AM
 wrote:
> I have set confMAX_DAEMON_CHILDREN to 50 on our sendmail server.  But do to
> this Virus going arround, it has caused a denial of service since it has
> take up all 50 slots.  I need an option to reserve a percentage of these
> slots, so that we can send out mail, and to also receive mail.

Something like that will be available in 8.13.

Take a look at http://j-chkmail.ensmp.fr/sm/
for the basic work.

-- 
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
0
Claus
8/21/2003 1:48:25 AM
"Claus A�mann" <ca+sendmail(-no-copies-please)@mine.informatik.uni-kiel.de>
wrote in message news:bi18d9$dkt$1@zardoc.esmtp.org...
> wrote:
> > I have set confMAX_DAEMON_CHILDREN to 50 on our sendmail server.  But do
to
> > this Virus going arround, it has caused a denial of service since it has
> > take up all 50 slots.  I need an option to reserve a percentage of these
> > slots, so that we can send out mail, and to also receive mail.
>
> Something like that will be available in 8.13.
>
> Take a look at http://j-chkmail.ensmp.fr/sm/
> for the basic work.
>
I haven't looked in depth in to the rate control source, but from what I
have read, it will only throttle the number of connections received from the
same IP address.  My problem is that I am being bombarded by requests many
different networks.

So I need a solution that will allow me to white list trusted networks, so
that they can connect to the reserved sendmail daemons.

So far I have most of it designed, but I don't know how to check for the
connecting mail servers IP address.

Attached is a patch that starts to implement this:

    TODO:
        - create reserved_children function to determine if the address is
allowed to connect to the reserved sendmail daemons.
            - determine the IP address of the connecting mail server
            - check IP address against {reserve_children} (i.e.
/etc/mail/reserve-children) list to see if it's allowed to connect.

NOTE: the following patch is against FreeBSD 4-STABLE source tree, which
contains sendmail 8.12.9.  If you want to use it on the sendmail 8.12.9
distribution, then replace src/ with sendmail/.

If anyone can give me some help on this, I would appreciate it.

Scot

Index: cf/m4/proto.m4
===================================================================
RCS file: /home/ncvs/src/contrib/sendmail/cf/m4/proto.m4,v
retrieving revision 1.1.1.4.2.13
diff -u -r1.1.1.4.2.13 proto.m4
--- cf/m4/proto.m4 29 Mar 2003 19:33:14 -0000 1.1.1.4.2.13
+++ cf/m4/proto.m4 21 Aug 2003 02:43:39 -0000
@@ -487,6 +487,13 @@
 # maximum number of children we allow at one time
 _OPTION(MaxDaemonChildren, `confMAX_DAEMON_CHILDREN', `0')

+ifdef(`_FFR_RESERVE_DAEMON_CHILDREN', `dnl
+# number of daemon children to reserve from MaxDaemonChildren
+_OPTION(ReserveDaemonChildren, `confRESERVE_DAEMON_CHILDREN', `0')
+
+# list of ip addresses or networks allowed to use the reserved daemon
children
+F{reserve_children} -o `'ifdef(`confRESERVE_EXCLUDE_FILE',
confRESERVE_EXCLUDE_FILE, `MAIL_SETTINGS_DIR`'reserve-children')')
+
 # maximum number of new connections per second
 _OPTION(ConnectionRateThrottle, `confCONNECTION_RATE_THROTTLE', `0')

Index: src/conf.c
===================================================================
RCS file: /home/ncvs/src/contrib/sendmail/src/conf.c,v
retrieving revision 1.5.2.14
diff -u -r1.5.2.14 conf.c
--- src/conf.c 29 Mar 2003 19:33:16 -0000 1.5.2.14
+++ src/conf.c 21 Aug 2003 01:43:11 -0000
@@ -2268,6 +2268,43 @@
   (void) sleep(1);
  }

+#if _FFR_RESERVE_DAEMON_CHILDREN
+ if (MaxChildren > 0)
+ {
+  if (CurChildren >= MaxChildren)
+  {
+   proc_list_probe();
+   if (CurChildren >= MaxChildren)
+   {
+#define R_MSG_CHILD "rejecting connections on daemon %s: %d children, max
%d"
+    sm_setproctitle(true, e, R_MSG_CHILD,
+     name, CurChildren, MaxChildren);
+    if (LogLevel > 8)
+     sm_syslog(LOG_INFO, NOQID, R_MSG_CHILD,
+      name, CurChildren, MaxChildren);
+    return true;
+   }
+  }
+  else if (ReserveChildren > 0 && ReserveChildren < MaxChildren &&
CurChildren >= MaxChildren - ReserveChildren)
+  {
+   proc_list_probe();
+   if (CurChildren >= MaxChildren - ReserveChildren)
+   {
+#define R_MSG_RESERVED "rejecting non-reserved connections on daemon %s: %d
children, max %d"
+    /* check if this host is allowed to use the reserved children */
+    if (reserved_children(e))
+    {
+     sm_setproctitle(true, e, R_MSG_RESERVED,
+      name, CurChildren, MaxChildren - ReserveChildren);
+     if (LogLevel > 8)
+      sm_syslog(LOG_INFO, NOQID, R_MSG_RESERVED,
+       name, CurChildren, MaxChildren - ReserveChildren);
+     return true;
+    }
+   }
+  }
+ }
+#else /* _FFR_RESERVE_DAEMON_CHILDREN */
  if (MaxChildren > 0 && CurChildren >= MaxChildren)
  {
   proc_list_probe();
@@ -2282,6 +2319,7 @@
    return true;
   }
  }
+#endif /* !_FFR_RESERVE_DAEMON_CHILDREN */
  return false;
 }
 /*
Index: src/readcf.c
===================================================================
RCS file: /home/ncvs/src/contrib/sendmail/src/readcf.c,v
retrieving revision 1.1.1.4.2.14
diff -u -r1.1.1.4.2.14 readcf.c
--- src/readcf.c 29 Mar 2003 19:33:17 -0000 1.1.1.4.2.14
+++ src/readcf.c 21 Aug 2003 00:26:25 -0000
@@ -2108,6 +2108,10 @@
 # define O_REQUIRES_DIR_FSYNC 0xd2
  { "RequiresDirfsync", O_REQUIRES_DIR_FSYNC, OI_NONE },
 #endif /* _FFR_REQ_DIR_FSYNC_OPT */
+#if _FFR_RESERVE_DAEMON_CHILDREN
+# define O_RESERVE_DAEMON_CHILDREN 0xe0
+ { "ReserveDaemonChildren", O_RESERVE_DAEMON_CHILDREN, OI_NONE },
+#endif /* _FFR_RESERVE_DAEMON_CHILDREN */
  { NULL,    '\0',  OI_NONE }
 };

@@ -2925,6 +2929,12 @@
    case O_MAXCHILDREN: /* max # of children of daemon */
   MaxChildren = atoi(val);
   break;
+
+#if _FFR_RESERVE_DAEMON_CHILDREN
+   case O_RESERVE_DAEMON_CHILDREN: /* # of children of daemon to reserve
for private use */
+  ReserveChildren = atoi(val);
+  break;
+#endif /* _FFR_RESERVE_DAEMON_CHILDREN */

    case O_MAXQUEUECHILDREN: /* max # of children of daemon */
   MaxQueueChildren = atoi(val);
Index: src/sendmail.h
===================================================================
RCS file: /home/ncvs/src/contrib/sendmail/src/sendmail.h,v
retrieving revision 1.1.1.4.2.15
diff -u -r1.1.1.4.2.15 sendmail.h
--- src/sendmail.h 29 Mar 2003 19:33:18 -0000 1.1.1.4.2.15
+++ src/sendmail.h 21 Aug 2003 00:44:07 -0000
@@ -2191,6 +2191,9 @@
 EXTERN int LogLevel; /* level of logging to perform */
 EXTERN int MaxAliasRecursion; /* maximum depth of alias recursion */
 EXTERN int MaxChildren; /* maximum number of daemonic children */
+#if _FFR_RESERVE_DAEMON_CHILDREN
+EXTERN int ReserveChildren; /* number of daemonic children to reserve for
private use */
+#endif
 EXTERN int MaxForwardEntries; /* maximum number of forward entries */
 EXTERN int MaxHeadersLength; /* max length of headers */
 EXTERN int MaxHopCount; /* max # of hops until bounce */


0
Zxycba
8/21/2003 3:04:31 AM
 wrote:
> "Claus A�mann" 

> > wrote:
> > > I have set confMAX_DAEMON_CHILDREN to 50 on our sendmail server.  But do
> to
> > > this Virus going arround, it has caused a denial of service since it has
> > > take up all 50 slots.  I need an option to reserve a percentage of these
> > > slots, so that we can send out mail, and to also receive mail.

> > Something like that will be available in 8.13.

> > Take a look at http://j-chkmail.ensmp.fr/sm/
> > for the basic work.

> I haven't looked in depth in to the rate control source, but from what I
> have read, it will only throttle the number of connections received from the
> same IP address.  My problem is that I am being bombarded by requests many
> different networks.

> So I need a solution that will allow me to white list trusted networks, so
> that they can connect to the reserved sendmail daemons.

> So far I have most of it designed, but I don't know how to check for the
> connecting mail servers IP address.

RELEASE_NOTES:

8.13.0/8.13.0   ????/??/??

        New macro {client_connections} which contains the number of open
                connections in the SMTP server for the client IP address.
                Based on patch from Jose Marcio Martins da Cruz, Ecole des
                Mines de Paris.

        CONFIG: New FEATURE(`conncontrol.m4') to set the limits for the
                number of open SMTP connections for individual hosts or nets.


cf/README:

conncontrol	Enable a simple check of the number of incoming SMTP
		connections.  This requires entries in access_db of the
		form

			ClientConn:IP.ADD.RE.SS		LIMIT

		The RHS specifies the maximum number of open connections
		(an integer number).

		Take the following example:

			ClientConn:10.1.2.3		4
			ClientConn:127.0.0.1		0
			ClientConn:			10

		10.1.2.3 can only have up to 4 open connections, the
		general limit it 10, and 127.0.0.1 does not have any
		explicit limit.

-- 
A: Maybe because some people are too annoyed by top-posting.
Q: Why do I not get an answer to my question(s)?
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
0
Claus
8/21/2003 5:17:16 AM
Claus A�mann wrote:
>  wrote:
> 
>>I have set confMAX_DAEMON_CHILDREN to 50 on our sendmail server.  But do to
>>this Virus going arround, it has caused a denial of service since it has
>>take up all 50 slots.  I need an option to reserve a percentage of these
>>slots, so that we can send out mail, and to also receive mail.
> 
> 
> Something like that will be available in 8.13.
> 
> Take a look at http://j-chkmail.ensmp.fr/sm/
> for the basic work.
> 

THANK YOU!!

dp

0
dennispe (388)
8/24/2003 9:43:09 PM
Reply:
Similar Artilces:

Internet Router Help
Hi, I have a Netgear Gatway Router RT311 and a Cabel Modem [Nortel Networks UE20B ADSL Bridge]. My ISP is BT and we currently use their USB ADSL modem, connected to one office PC, and by using XP internet sharing we share the connection with other users in the office. However, things have now changed with regards to the network setup - we now have a server. My question is, will i be able to use the Cabel Modem and the Router to conect my Broadband to my Newtork Switch so that i can share my Broadband connection with the rest of my network in the office? If so could you give me...

Need SimpleScalar GCC Compiler
My partner and I are doing a project involving SimpleScalar. We need to make a program of our own to use with sim-cache. I'm under the impression it's a simple matter of creating an executable with "ssbig-na-sstrix-gcc". However, I have no idea where to get this compiler. It's not in simplesim, simpletools, or simpleutils (as far as we know). How and where can we get this compiler? TastyWheat wrote: > My partner and I are doing a project involving SimpleScalar. We need > to make a program of our own to use with sim-cache. I'm under the > impression ...

help! help!! help!!!
x=[0 1 10] p=[100 80] how can I get A A=[3x(1) 2x(1) x(1) 1 0 0 0 0; 2x(1) x(1) 1 0 0 0 0 0; 3x(2) 2x(2) x(2) 1 -3x(2) -2x(2) -x(2) -1; 2x(2) x(2) 1 0 -2x(2) -x(2) -1 0; p(1)x(1) p(1) 0 0 -p(2)x(2) -p(2) 0 0; p(1) 0 0 0 -p(2) 0 0 0; 0 0 0 0 -p(2)x(3) -p(2) 0 0; 0 0 0 0 -p(3) 0 0 0; ] In article <fkus3t$11h$1@fred.mathworks.com>, Jim lei <redlightlike@mathworks.com> wrote: >x=[0 1 10] >p=[100 80] >how can I get ...

Re: Help using macro to refer files #3
Hey thanks. This works. Actually tried using something similar, but didn't = get it through because of some syntax error. Thanks a lot. --- On Tue, 2/6/09, Frank Poppe <Frank.Poppe@PWCONSULTING.NL> wrote: From: Frank Poppe <Frank.Poppe@PWCONSULTING.NL> Subject: Re: Help using macro to refer files To: SAS-L@LISTSERV.UGA.EDU Date: Tuesday, 2 June, 2009, 6:18 PM On Jun 2, 1:34 pm, gerhard.hellrie...@T-ONLINE.DE (Gerhard Hellriegel) wrote: > what do you mean? A FILE or a SAS-dataset? For a file you should not use = a > SET statement. > So what is it? > > Gerhard &...

I really need a solution for this problem
This is a multi-part message in MIME format. ------=_NextPart_000_00A9_01C4D3BC.849312C0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Can't get answers from ULEAD - it's like they don't exist, and I heard = from Jasc people that they are not supporting free plugins. I think = they should. At any rate - Ulead Art Texture - works like a charm for = me in version 8.10 of PSP. =20 I installed, uninstalled, reinstalled PSP9 at least a half dozen times. = Likewise with art texture plugin. For some strange reason...

NN help please
Hi all, please I need help very ergent. I'm dealing with a scheduling jobshop problems using neural network . Jobshop scheduling problem is a problem in shopfloor in factories and its description is: consists of - a set of machines. - a collection of jobs to be scheduled, where each job must pass through each machine once only. each job has its own processing order and this may bear no relation to the processing order of any other job. each job should be processed through the machines in a particular order(precedence constraints) and in neural using multi layered, backpropagation. , your i...

Open VMS TCP / Mail
We are currently running OpenVMS V7.1-1H2 on an Alpha box, but are NOT running UCX. We are running some software from "The Wollongong Group" - Pathway for TCP/IP and PONY EXPRESS for connecting VMS mail to the outside universe via SMTP We have been having some intermittant mail delivery failures that we can't trace, and since none of this software is actively supported any more, it has been suggested that we pull the existing software out and install UCX. Not being much of a systems guy (we have a contractor we call in as necessary) I am wondering if installing UCX would provi...

Help Help Help Help Help
please,help us . we have a seious problem, we are designing a radio controlled car that is guided by the PC, to send the data wireless between the PC and the Car and vice versa. we use 2 transmitter/reciever circuits from 2 seperate radio controlled car each running with a different frequency (27 MHz & 40 MHz)and modify the functionality of each to do the disered work. but on mounting a transmitter(40MHz) and reciever(27MHz) on the car, and attach another transmitter(27MHz) and reciever(40MHz) to the PC; we found that on sending signals from the car to the PC on the transmitter & rec...

Desperately require help with Visual Basic / SQL Server 2000
Hi, I am new to SQL Server. I am attempting to execute an insert query, but I keep getting an entire range of errors depending on which way I choose to do it. Can anybody tell me what is wrong with my code below? "txtkeyword" is a text box on my form. Thanks in advance, Daniel McDonald Dim mySQL As String Dim myRecSet As ADODB.Recordset Dim myConnection As New ADODB.Connection mySQL = "INSERT INTO tblcustomerfind ( CompanyName )SELECT tblcustomer.CompanyName" mySQL = mySQL & " From tblcustomer, tblcustomerfind WHERE (((tblcustomer.Compa...

Help on ode445
Can someone kindly tell me what's wrong with my last line of the code of using ode45? the error message I got is ??? Error using ==> exist Function 'exist' is not defined for values of class 'sym'. Error in ==> D:\MATLAB6p5\toolbox\matlab\funfun\private\odearguments.m On line 75 ==> if (exist(ode)==2) % M-file Error in ==> D:\MATLAB6p5\toolbox\matlab\funfun\ode45.m On line 155 ==> [neq, tspan, ntspan, next, t0, tfinal, tdir, y0, f0, args, ... Error in ==> H:\thesis\q.m On line 20 ==> [x,y] = ode45(c, [0 d], [1 2]) And here is my code Syms delta % ...

Help me? WSD?
hi all, My name's Tuan, I'm from Ha Noi, Viet Nam, I am working for Tinh Van Group. We are developing an English - Vietnamese converter system for commerce. I want to find a English WSD (English Word Sense Disambiguation) tool for all words with high accuracy, if you know, please help me. Thanks & Best Regards! On Mon, 02 Jul 2007 02:26:16 -0700, tuanhv_mt <tuanhv@gmail.com> wrote: >hi all, > My name's Tuan, I'm from Ha Noi, Viet Nam, I am working for Tinh Van >Group. We are developing an English - Vietnamese converter system for >commerce. I want t...

Help #2
Does anyone know how to create an animations ..... plz help me Google it! http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=gif+animation+tutorial http://www.google.com/search?sourceid=navclient&ie=UTF-8&q=flash+animation+tutorial Enjoy! -- Chuck "christopher" <cans1a04_ct@yahoo.co.uk> wrote in message news:16f356a3.0409170248.15a9be8b@posting.google.com... > Does anyone know how to create an animations ..... > > plz help me On 17 Sep 2004 03:48:02 -0700, cans1a04_ct@yahoo.co.uk (christopher) wrote: >Does any...

Help: DHCP DoS Attack
hi, I have a problem about DHCP. Recently I noticed a Dell DRAC management release/ack DHCP offer very fast, nearly 20 times/sec, and it makes DHCP server cannot offer other systems. So is there any way can avoid such problem? It sounds like a DoS attack actually. I don't know why Dell DRAC has such problem but I have encountered twice on my DHCP server. Any hints I appreciate. Eric ...

/PAE does not help
Hi group, &nbsp; today I got 4GB DDR2 RAM for my desktop and tryed the /PAE switch with Windows XP. I found no difference with Labview 8.5. My programm crys out of memory at the same data set sizes which I expect to use &lt; 1,5 GBytes RAM. Have somebody noticed improvements in labview usuable memory with the /PAE switch? &nbsp; IngoWolf wrote: which I expect to use &lt; 1,5 GBytes RAM. How did you calculate how much RAM you application will use? What size is your largest array? &nbsp; Remember that arrays need to be contiguous memory, so the problem could be caused by ...

Can Anyone Help
hi can anyone tell me how to make one line bold in a table and leave the rest alone On Tue, 10 Jul 2007 23:00:54 GMT, pure.logic@ntlworld.com wrote: >hi can anyone tell me how to make one line bold in a table and leave >the rest alone Look up "borders". See Format menu, borders. bob As a newcomer to MS Word and MS Publisher - how do I export text and graphical material from them into other DTP software? John -- _ _________________________________________ / \._._ |_ _ _ /' Orpheus Internet Services \_/|...

Re: HELP Minisoft support
The e-mail address is support@minisoft.com I am not sure support extends into the weekend -------------- Original message from Craig Lalley <mr_lalley@YAHOO.COM>: -------------- > Does anyone answer the phones at Minisoft on the weekend. > > Please call Donna Rivett at Northern Safety 315-793-4990!! > > TIA, > > -Craig > > > --------------------------------- > Do you Yahoo!? > Get on board. You're invited to try the new Yahoo! Mail Beta. > > * To join/leave the list, search archives, change list settings, *...

noob help request
I have defined two classes with one common field (called code) and several different fields. In class A there is only one instance of any given code as all items are individual. In class B, there may be none, one or many instances of each code, as there can be any number of Bs referring to a single A. I need to make a list of Bs, remove dupes, and then create a list of As that have Bs. (I hope this makes sense!) with much research and reading of my book I managed to get this working, but at one stage I had errors that talked about being unable to concatenate type A. So I converted my As...

Help: "find command in windows"
Hi, group, I need to move a perl script from unix to windows. I need to do something like "find -type f" to list all the file under a directory and sub-directory, the list will be very big, 200million files. Now under windows, I will have to use File::Find, and print each file name by file handler, but it is much slow than the unix command "find", does any body have a better idea? Thanks for your help ...

Help for Help
Although OA is definitely committed to not provide new help or other documentation for D5, (outside this newsgroup and paid help of course) would it be too difficult to supply a few simple redirection links so when I click in D5 on Help when online I automatically get the D4 help instead of: "The page cannot be found"? ...

TABLE, cell width.. help
Hi.. I have this code in my page <table width="100%" cellspacing="0" cellpadding="0" border="0"> <tr><td width="9"><img src="topLeft.gif"></td> <td>text goes here</td> <td width="9"><img src="topRight.gif"></td> </tr> </table> The table is stretching and making the left and right columns wider than 9 pixels wide. Why? This is very frustrating.. Am I missing something? Thanks, Rich rwmorey@27east.com wrote: > I ha...

Help on DDJ article on template meta-programming
Dear all, I'm experiencing with meta-programming (I'm a newbie). I've found an interesting article by Thomas Becker at http://www.ddj.com/cpp/184401565 Unfortunately the code does not compile: with GCC 4.1.1 I get 18 errors. The command used for compiling is: g++ -Wall -Wextra -ansi meta.cpp where meta.cpp is the source code. I've tried to make some adjustments and I end up with "only" 2 errors. Now I don't understand why my final version does not compile. Can someone able to explain why this not work and how to fix it? Here below is the...

need some help
Hi all. i m running option 61 c with 2 operator console 2250. I have a rote RDB=50 with 20 members(COT Lines. Now customer wants that if any member of this route is busy then it should be sho on console any key vice versa if all members or some members of this route are busy then it must be shown on console keys. Can i programme console ICI key for individual trunk member status??? if yes then how??? another thing is that is it possible to access/pick individual trunk from console key for dial out like we programmed a hot key on M3904 for trunk to get access of trunk??? i m stuck at ...

Screen recording needs a performance boost.
I'm using robot to capture my screen in "real-time" and only able to pull about 12fps, does anyone know how to improve the fps? Is the while loop slowing it down? long t0 = System.currentTimeMillis(); int i = 0; int fps = 0; while (true) { i++; long t1 = System.currentTimeMillis(); int seconds = (int) (t1-t0)/1000; try{ fps = i / seconds; this.setTitle("FPS: " + fps); } catch( Exception e){ ...

iterator help
Hi all, I am writing my own container and need an iterator. I am hesitating if I should my iterator should inherited from std::iterator or just write my own one. Please give me an idea. BTW, if I write my own one, should I let it defined inside my container(inner class) or just be a complelely independent class. Thanks. "Rex_chaos" <rex_chaos@21cn.com> wrote in message news:f7a7417.0310082136.64690c9@posting.google.com... > > I am writing my own container and need an iterator. I am > hesitating if I should my iterator should inherited from > std::iterator o...

Need laser printer
I am interesting in purchasing a "high speed" laser jet printer with duplex printing capabilities. Any suggestions as to brand, model, etc. Thank you.... McLou "McLou" <mclou@hal-pc.org> wrote in message news:1157224503.568333.276920@h48g2000cwc.googlegroups.com... >I am interesting in purchasing a "high speed" laser jet printer with > duplex printing capabilities. Any suggestions as to brand, model, etc. > > Thank you.... IMO, you can't go wrong with an HP laser. Many models and price ranges. Check their web site for...