httpd_socket

Module

httpd_socket

Module Summary

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

deliver/3 sends Data over Socket using the specified SocketType. Socket and SocketType is to be the socket and the socket_type form the mod record as defined in httpd.hrl

peername(SocketType,Socket) -> {Port,IPAddress}

Types

peername/2 returns the Port and IPAddress of the remote Socket.

resolve() -> HostName

Types

resolve/0 returns the official HostName of the current host.

see also

httpd(3)

© 2010–2017 Ericsson AB
Licensed under the Apache License, Version 2.0.