<html><head></head><body><div style="color:#000; background-color:#fff; font-family:Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:13px"><div id="yui_3_16_0_1_1490762673893_11784">Hello,</div><div id="yui_3_16_0_1_1490762673893_11784"><br></div><div id="yui_3_16_0_1_1490762673893_11784">What is correct way to save tcp socket data in ETS?</div><div id="yui_3_16_0_1_1490762673893_11784"><br></div><div id="yui_3_16_0_1_1490762673893_11784">I tried this way:</div><div id="yui_3_16_0_1_1490762673893_11784"><br></div><div id="yui_3_16_0_1_1490762673893_11784" dir="ltr">ets:insert(socket, {"79514484992",#Port<0.11255>}), But it gives "syntax error".<br></div><div id="yui_3_16_0_1_1490762673893_11784" dir="ltr"><br></div><div id="yui_3_16_0_1_1490762673893_11784" dir="ltr">When I place commas around - everything is ok:</div><div id="yui_3_16_0_1_1490762673893_11784" dir="ltr"><br></div><div id="yui_3_16_0_1_1490762673893_11784" dir="ltr">ets:insert(socket, {"79514484992",'#Port<0.11255>'}) - this is ok, but how to add commas around Port?<br></div><div id="yui_3_16_0_1_1490762673893_11784"><br></div><div id="yui_3_16_0_1_1490762673893_11784"><br></div><div id="yui_3_16_0_1_1490762673893_11784"><br></div></div></body></html>