Two confusions??

Ish Rattan ishwar@REDACTED
Wed Feb 10 18:08:05 CET 2010


1. In socket based erlang code I have seen
tcp-options of the form:
    [binary, {packet,0},..]
    [binary, {packet,4},..]

what is the difference between the two?

2. A C-client sends 4-byte int request (with numeric
    value N encoded in the 4-bytes), erlang server
    receives the request (in binary) and prints as:
    <<0, 0, 0, N>>

what is the interpretation here?

-ishwar



More information about the erlang-questions mailing list