1httpd_socket(3) Erlang Module Definition httpd_socket(3)
2
3
4
6 httpd_socket - Communication utility functions to be used by the Erlang
7 web server API programmer.
8
10 This module provides the Erlang web server API module programmer with
11 utility functions for generic sockets communication. The appropriate
12 communication mechanism is transparently used, that is, ip_comm or ssl.
13
15 deliver(SocketType, Socket, Data) -> Result
16
17 Types:
18
19 SocketType = socket_type()
20 Socket = socket()
21 Data = io_list() | binary()
22 Result = socket_closed | void()
23
24 deliver/3 sends Data over Socket using the specified SocketType.
25 Socket and SocketType is to be the socket and the socket_type
26 form the mod record as defined in httpd.hrl
27
28 peername(SocketType,Socket) -> {Port,IPAddress}
29
30 Types:
31
32 SocketType = socket_type()
33 Socket = socket()
34 Port = integer()
35 IPAddress = string()
36
37 peername/2 returns the Port and IPAddress of the remote Socket.
38
39 resolve() -> HostName
40
41 Types:
42
43 HostName = string()
44
45 resolve/0 returns the official HostName of the current host.
46
48 httpd(3)
49
50
51
52Ericsson AB inets 7.4.2 httpd_socket(3)