Initiates a network connection to a server.
INKAction INKNetConnect (INKCont
contp
, unsigned int
ip
, int
port
)
INKCont
is the
continuation to be associated with the connection.contp
int
is the IP
address, in network byte order, of the host to connect
with.ip
int
is port number for
the host, specified in network byte order.port
Opens a network connection to the host specified by
on the port specified
by ip
. If the
connection is successfully opened, then
port
is called
back with the event contp
INK_EVENT_NET_CONNECT
and the
new network vconnection is passed in the event data
parameter. If the connection is not successful, then
is called
back with the event
contp
INK_EVENT_NET_CONNECT_FAILED
.
Note | |
---|---|
It’s possible to receive
Reentrant calls are possible; i.e., the net processor can
call back the user
( |
An INKAction
object.