Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Socket.erl - a wrapper for handling tcp and ssl connections in erlang
Erlang
branch: master
Failed to load latest commit information.
src exporting socket:extract_port_from_socket/1
.gitignore extracting socket.erl project from gen_smtp
README.markdown
Rakefile extracting socket.erl project from gen_smtp
server.crt extracting socket.erl project from gen_smtp
server.key extracting socket.erl project from gen_smtp

README.markdown

Socket.erl

Provides a thin api around gen_tcp and ssl sockets allowing you to flexibly work with socket with and without encryption.

Features:

  • listens on a port with either ssl encryption or plain tcp
  • handles asynchronous connection events via both protocols
  • encapsulates all the nasty bits of erlang socket options
  • allows easy upgrading of tcp connections via to_ssl_* functions
  • helps you apply reasonable default options to all sockets

Written by Jack Danger Canty

Extracted from gen_smtp written by Andrew Thompson (andrew@hijacked.us)

Socket Image image by incurable hippie

Something went wrong with that request. Please try again.