Skip to content
/ tcp_ping Public

A playground for the Copenhagen Elixir and Erlang meet up where we build a ping server

Notifications You must be signed in to change notification settings

cphex/tcp_ping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCP Ping

In this session we will attempt to build a server that can send and receive messages over TCP.

We will have to learn how to use Erlang modules from Elixir; get familiar with the Erlang documentation; learn about the :gen_tcp module.

Task

  • Create a server using :gen_tcp.listen (active: false, and in binary mode) that accept a connection using :gen_tcp.accept and echo messages send to it. Connect to it using :gen_tcp.connect and send messages using :gen_tcp.send.

  • Create a TCP server wrapped in a GenServer that listen to messages using active: true

  • Create a ping server that reply with pong

Resources

Installation

Fork this repository to your own Github account and work from there. That way we can all see your solution in the projects network view when we compare solutions, and share tips and tricks, at the end of the session.

About

A playground for the Copenhagen Elixir and Erlang meet up where we build a ping server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages