Socket statistics

klacke@REDACTED klacke@REDACTED
Tue Apr 19 11:07:28 CEST 2005


On Tue, Apr 19, 2005 at 10:17:30AM +0200, Joe Armstrong (AL/EAB) wrote:
> 
>     Good morning Gurus
> 
>     Are there any Erlang functions for obtaining socket statistics?
> 
>     I'd like something like:
> 
> 	Stats = gen_tcp:statistics(Socket),
> 


(a@REDACTED)1> inet:i().
Port Module    Recv Sent Owner    Local Address   Foreign Address State     
6    inet_tcp  0    0    <0.19.0> *:32882         *:*             LISTENING 
8    inet_tcp  4    16   <0.17.0> localhost:32883 localhost:4369  CONNECTED 
9    undefined 0    0    <0.20.0>                 *:*             ACCEPTING 
Port Module Recv Sent Owner Local Address Foreign Address State 
ok



/klacke


-- 
Claes Wikstrom                        -- Caps lock is nowhere and
http://www.hyber.org                  -- everything is under control          



More information about the erlang-questions mailing list