httpd_socket(3erl) linux man page | unix.com

Man Page: httpd_socket

Operating Environment: linux

Section: 3erl

httpd_socket(3erl)					     Erlang Module Definition						httpd_socket(3erl)

NAME
httpd_socket - Communication utility functions to be used by the Erlang Web server API programmer.
DESCRIPTION
This module provides the Erlang Web server API module programmer with utility functions for generic sockets communication. The appropriate communication mechanism is transparently used, that is ip_comm or ssl .
EXPORTS
deliver(SocketType, Socket, Data) -> Result Types SocketType = socket_type() Socket = socket() Data = io_list() | binary() Result = socket_closed | void() deliver/3 sends the Binary over the Socket using the specified SocketType . Socket and SocketType should be the socket and the socket_type form the mod record as defined in httpd.hrl peername(SocketType,Socket) -> {Port,IPAddress} Types SocketType = socket_type() Socket = socket() Port = integer() IPAddress = string() peername/3 returns the Port and IPAddress of the remote Socket . resolve() -> HostName Types HostName = string() resolve/0 returns the official HostName of the current host.
SEE ALSO
httpd(3erl) Ericsson AB inets 5.5.2 httpd_socket(3erl)
Related Man Pages
erl_internal(3erl) - linux
gen_tcp(3erl) - linux
httpd_conf(3erl) - linux
mod_security(3erl) - linux
percept(3erl) - linux
Similar Topics in the Unix Linux Community
Featured Books and Articles by Active Forum Members
Answers to Recently Asked Questions about UNIX.COM
YouTube: How to Use Code Tags and Format Posts @UNIX.com
UNIX.com End of Year (EOY) Report (2019)