Learn R Programming

nanonext (version 0.7.2)

is_aio: Is Aio

Description

Is the object an Aio (sendAio or recvAio).

Usage

is_aio(x)

Value

Logical value TRUE if 'x' is of class 'recvAio' or 'sendAio', FALSE otherwise.

Arguments

x

an object.

Examples

Run this code
sock <- socket(listen = "inproc://isaio")
r <- recv_aio(sock)
s <- send_aio(sock, "test")

is_aio(r)
is_aio(s)

close(sock)

Run the code above in your browser using DataLab