httpd_socket(3erl)
π NAME π
Welcome to the httpd_socket(3erl) Erlang module definition page, bestie! This module is all about communication utility functions to be used by the Erlang web server API programmer. π
π¦ DESCRIPTION π¦
Okay so this module gives the Erlang web server API module programmer utility functions for generic sockets communication. The appropriate communication mechanism is transparently used β that is, ip_comm or ssl. Itβs giving βhandled for youβ energy, no cap. β¨
π EXPORTS π
π
deliver(SocketType, Socket, Data) -> Result
Types:
SocketType = socket_type()
Socket = socket()
Data = io_list() | binary()
Result = socket_closed | void()
deliver/3 sends Data over Socket using the specified SocketType. Socket and SocketType are to be the socket and the socket_type from the mod record as defined in httpd.hrl. Literally the βsend the dataβ icon. π
π«Ά peername(SocketType,Socket) -> {Port,IPAddress}
Types:
SocketType = socket_type()
Socket = socket()
Port = integer()
IPAddress = string()
peername/2 returns the Port and IPAddress of the remote Socket. Lowkey useful when you need to know whoβs on the other end. π
β resolve() -> HostName
Types:
HostName = string()
resolve/0 returns the official HostName of the current host. Periodt. π
π SEE ALSO π
httpd(3erl) β go read it for the bigger httpd lore, iykyk. π¦
π Cute sign-off: source/version is Ericsson AB, inets 8.3.1.2, on the httpd_socket(3erl) page β and the footer doesnβt print a date, bestie, so thatβs the whole footer tea, fr fr. π«Ά
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms