anchor.diff:  
   
   
  +%% ===========================================================================
  +%%
   %% close - close a file descriptor
   
   -spec close(Socket) -> ok | {error, Reason} when
  
positive.code:        is_list(Flags) andalso
         (is_integer(Timeout) orelse (Timeout =:= infinity)) ->
      EFlags = enc_recv_flags(Flags),
      do_recv(Socket, Length, EFlags, <<>>, EFlags).
  
  do_recv({socket, _, SockRef} = Socket, Length, EFlags, Acc, Timeout)
    when (Timeout =:= infinity) orelse
         (is_integer(Timeout) andalso (Timeout > 0)) ->
      TS      = timestamp(Timeout),
  
negative.code:       SrcPort :: port_number(),
        Reason  :: term().
  
  recvfrom({socket, _, SockRef}, Flags) when is_list(Flags) ->
      EFlags = enc_recv_flags(Flags),
      nif_recvfrom(SockRef, EFlags).
  
  
  %% ---------------------------------------------------------------------------
  %%
  
  %% -spec recvmsg(Socket, [out] MsgHdr, Flags) -> {ok, Data} | {error, Reason} when
  %%       Socket :: socket(),
  