Hatena::Grouperlang

Erlang Mind

 | 

2008-05-24

安心した

| 01:51

これをよく書いていたのだが、他の人のソースでも発見できた。

今後は安心して書けそうだ ... 。

binary_to_options(Binary) ->                                                    
    binary_to_options(Binary, []).

set_opt

| 01:06

結局ソースを読むわけか。

-type(socket_setopt() ::
      {'raw', non_neg_integer(), non_neg_integer(), binary()} |
      %% TCP/UDP options
      {'reuseaddr',       bool()} |
      {'keepalive',       bool()} |
      {'dontroute',       bool()} |
      {'linger',          {bool(), non_neg_integer()}} |
      {'broadcast',       bool()} |
      {'sndbuf',          non_neg_integer()} |
      {'recbuf',          non_neg_integer()} |
      {'priority',        non_neg_integer()} |
      {'tos',             non_neg_integer()} |
      {'nodelay',         bool()} |
      {'multicast_ttl',   non_neg_integer()} |
      {'multicast_loop',  bool()} |
      {'multicast_if',    ip_address()} |
      {'add_membership',  {ip_address(), ip_address()}} |
      {'drop_membership', {ip_address(), ip_address()}} |
      {'header',          non_neg_integer()} |
      {'buffer',          non_neg_integer()} |
      {'active',          bool() | 'once'} |
      {'packet',        
       0 | 1 | 2 | 4 | 'raw' | 'sunrm' |  'asn1' |
       'cdr' | 'fcgi' | 'line' | 'tpkt' | 'http' | 'httph'} |
      {'mode',           list() | binary()} |
      {'port',           'port', 'term'} |
      {'exit_on_close',   bool()} |
      {'low_watermark',   non_neg_integer()} |
      {'high_watermark',  non_neg_integer()} |
      {'bit8',            'clear' | 'set' | 'on' | 'off'} |
      {'send_timeout',    non_neg_integer() | 'infinity'} |
      {'delay_send',      bool()} |
      {'packet_size',     non_neg_integer()} |
      {'read_packets',    non_neg_integer()} |
      %% SCTP options
      {'sctp_rtoinfo',               #sctp_rtoinfo{}} |
      {'sctp_associnfo',             #sctp_assocparams{}} |
      {'sctp_initmsg',               #sctp_initmsg{}} |
      {'sctp_nodelay',               bool()} |
      {'sctp_autoclose',             non_neg_integer()} |
      {'sctp_disable_fragments',     bool()} |
      {'sctp_i_want_mapped_v4_addr', bool()} |
      {'sctp_maxseg',                non_neg_integer()} |
      {'sctp_primary_addr',          #sctp_prim{}} |
      {'sctp_set_peer_primary_addr', #sctp_setpeerprim{}} |
      {'sctp_adaptation_layer',      #sctp_setadaptation{}} |
      {'sctp_peer_addr_params',      #sctp_paddrparams{}} |
      {'sctp_default_send_param',    #sctp_sndrcvinfo{}} |
      {'sctp_events',                #sctp_event_subscribe{}} |
      {'sctp_delayed_ack_time',      #sctp_assoc_value{}}).

RosieRosie 2011/09/18 06:01 Your story was really informative, tahnks!

vhnanraxtsvhnanraxts 2011/09/18 16:44 MZs14T <a href="http://cdquwtecljyl.com/">cdquwtecljyl</a>

oodnswekoodnswek 2011/09/19 18:46 PixioR , [url=http://zdwvumnydjle.com/]zdwvumnydjle[/url], [link=http://gphjlzsfvjig.com/]gphjlzsfvjig[/link], http://toaafhigsgla.com/

zlvbhkxmdyzlvbhkxmdy 2011/09/20 02:02 vwMIe5 <a href="http://gartzhjheuac.com/">gartzhjheuac</a>

tatubgdtatubgd 2011/09/27 01:53 gmcSvS , [url=http://mvzffcwrfavj.com/]mvzffcwrfavj[/url], [link=http://czlmzzgszvzj.com/]czlmzzgszvzj[/link], http://qptkykbpfokx.com/

LaisaLaisa 2012/08/24 16:42 You mean I don't have to pay for expert advice like this aoynmre?!

jengiyjengiy 2012/08/25 15:32 HK7FWD <a href="http://hbqhicodbwpq.com/">hbqhicodbwpq</a>

ゲスト



トラックバック - http://erlang.g.hatena.ne.jp/Voluntas/20080524
 |