[erlang-questions] How to save Socket data in ETS

Dmitry mbike2000ru@REDACTED
Wed Mar 29 07:22:00 CEST 2017


Hello,
What is correct way to save tcp socket data in ETS?
I tried this way:
ets:insert(socket, {"79514484992",#Port<0.11255>}), But it gives "syntax error".

When I place commas around - everything is ok:
ets:insert(socket, {"79514484992",'#Port<0.11255>'}) - this is ok, but how to add commas around Port?



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170329/d64c78fd/attachment.htm>


More information about the erlang-questions mailing list