Skip to content

Instantly share code, notes, and snippets.

defmodule Hjf.ListTrie do
import Logger
def new() do
nil
end
def insert(tnode, str, value) when is_binary(str) do
insert(tnode, String.codepoints(str), value)
end
-module(robot).
-behaviour(gen_server).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, terminate/2, code_change/3]).
-export([start/2]).
-define(IP, '127.0.0.1').
-define(PORT, 6666).
start(ClientNum, SendCount) ->