<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.3526.800" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Module inet_db has the following function used 
by gen_tcp:send/2 :</FONT></DIV>
<DIV> </DIV>
<DIV>lookup_socket(Socket) when port(Socket) -><BR>    case 
catch <FONT color=#ff0000>erlang:port_get_data(Socket) </FONT>of<BR> Module 
when atom(Module) -><BR>     {ok, Module};<BR> _ 
-><BR>     {error, closed}<BR>    
end.</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>- could someone tell me what does bif port_get_data/1 do?</DIV>
<DIV>- where can I find a description of all erlang BIF?</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV>Thanks,</DIV>
<DIV>Eduardo Figoli</DIV>
<DIV> </DIV></BODY></HTML>