yakczh
V2EX  ›  Erlang

scoket接收的字符串怎么在服务端打印出来?

  •  
  •   yakczh · Mar 17, 2013 · 6597 views
    This topic created in 4948 days ago, the information mentioned may be changed or developed.
    io:format(" -> recv data: ~w~n", [binary_to_list(Data)]),


    结果显示 [72,69,65,68,32,47,32,72,84,84,80,47,49,46,
    48,13,10,13,10,0]

    换成~p也是一样
    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   772 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:51 · PVG 04:51 · LAX 13:51 · JFK 16:51
    ♥ Do have faith in what you're doing.