19972013Ericsson AB. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
httpd_socketJoakim Grebenö1997-10-142.2httpd_socket.sgmlhttpd_socketCommunication utility functions to be used by the Erlang
web server API programmer.
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.
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}Returns the port and IP address of the remote socket.SocketType = socket_type()Socket = socket()Port = integer()IPAddress = string()
peername/2 returns the Port and
IPAddress of the remote Socket.
resolve() -> HostNameReturns the official name of the current host.HostName = string()
resolve/0 returns the official HostName of
the current host.