Skip to content

Instantly share code, notes, and snippets.

J. Whiteman jwhiteman

View GitHub Profile
prio / server.ex
Created Jan 6, 2014
Elixir gen_server example
View server.ex
defmodule Tcprpc.Server do
use GenServer.Behaviour
defrecord State, port: nil, lsock: nil, request_count: 0
def start_link(port) do
:gen_server.start_link({ :local, :tcprcp }, __MODULE__, port, [])
def start_link() do
You can’t perform that action at this time.