Re: checking mail filter for list
"otrcomm" <[email protected]> Tue, 21 Nov 2006 23:02:55 -0700
| Newsgroups | gmane.network.nocat |
|---|---|
| Message-ID | <002401c70dfb$dabefad0$ef01a8c0@intel> |
hello, ----- Original Message ----- From: "Sonam Wangmo" <[email protected]> To: "Sameer Verma" <[email protected]> Cc: "Drew" <[email protected]>; <[email protected]> Sent: Tuesday, November 21, 2006 6:28 PM Subject: Re: [NoCat] checking mail filter for list > Hello, > can anyone here explain what this particular code in package Nocat::Gateway > is doing: > > sub bind_socket{ > my $self = shift; > ..... > return $self -> {ListenSocket} if $self > ->{ListenSocket}; > ...... > } > > $self ---- hold the hash value, the object, like 'this' in C++ > What i don't understand is the : -> {ListenSocket} > > what does that mean and where is ListenSocket defined. it gets defined on exit from sub bind_socket, i.e., ... my $server = IO::Socket::INET->new( Listen => $self->{ListenQueue}, Proto => "tcp", Reuse => 1, @address ); $self->log( 0, "Can't bind to port $self->{GatewayPort}: $!.", "(Is another gateway already running?)" ) unless $server; $self->log( 8, "Binding listener socket to ", $server->sockhost ); return( $self->{ListenSocket} = $server ); ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ } Incidently, ListenQueue is set at 10 in NoCat.pm, and that is about as many connections as a 56MB access point should handle before it gets clogged. To quote Carla Schroder, http://www.enterprisenetworkingplanet.com/netos/article.php/3592556 " The purported 54 mbps of 802.11g is mythical; at best you'll get 48, which is nice, but most likely you'll get 20-30, and as nodes are added it will probably drop all of them to 11 mbps. " of particular note are two of her references at the end of this article: Build A Linux-Based Wireless Access Point, part 1 Build A Linux-Based Wireless Access Point, part 2 regards, murrah boswell > > this must be very simple for some of you guys, can you please help me. i am > stuck with this code for 2 days now and still no answer. > hoping to hear soon > sonam > > > > On 11/13/06, Sameer Verma <[email protected]> wrote: > > > > Sonam Wangmo wrote: > > > hi, > > > Its a late respond though still a respond right? > > > > > > Hello Everyone, My name is sonam wangmo (female) i am currently doing > > > my masters thesis in Computer science. On VoIP and SIP protocol, I am > > > using Nocat as my testbed and it has helped me a lot. Just wanted to > > > say hi to all. and once i get some solid output i will write more > > > about my work. > > > > > > At the moment I am disecting Nocat codes .....dirty/difficult work > > > ... hehehe.... and trying to make it work for UDP protocols. > > > > > > more later.. > > > > > > sonam > > > > > Hi Sonam, > > I'm curious...why nocat? Is it because of the smallish footprint? > > > > Sameer > > > > -- > > Dr. Sameer Verma, Ph.D. > > Associate Professor of Information Systems > > San Francisco State University > > San Francisco CA 94132 USA > > http://verma.sfsu.edu/ > > http://opensource.sfsu.edu/ > > > > > _______________________________________________ > NoCat mailing list > [email protected] > http://lists.nocat.net/mailman/listinfo/nocat