GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  HTTPD_SOCKET (3)

NAME

httpd_socket - Communication utility functions to be used by the Erlang
web server API programmer.

CONTENTS

Description
Exports

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 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:

SocketType = socket_type()
Socket = socket()
Port = integer()
IPAddress = string()

peername/2 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(3)

Search for    or go to Top of page |  Section 3 |  Main Index


Ericsson AB HTTPD_SOCKET (3) inets 6.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.