This module provides the EWSAPI module programmer with utility
functions for generic sockets communication. The appropriate
communication mechanism is transparently used, that is
ip_comm
or ssl
.
deliver(SocketType,Socket,Binary) -> Result
Types:
SocketType = socket_type()
Socket = socket()
Binary = binary()
Result = socket_closed | void()
deliver/3
sends the Binary
over the Socket
using the specified SocketType
. Socket and SocketType should be
the socket and the socket_type form the mod record as defined in httpd.
peername(SocketType,Socket) -> {Port,IPAddress}
Types:
SocketType = socket_type()
Socket = socket()
Port = integer()
IPAddress = string()
Types:
HostName = string()