rmongodb (version 1.8.0)

mongo.get.socket: Get the socket assigned to a mongo object by mongo.create().

Description

Get the the low-level socket number assigned to the given mongo object by mongo.create().

Usage

mongo.get.socket(mongo)

Arguments

mongo
(mongo) a mongo connection object.

Value

Integer socket number

See Also

mongo.create, mongo.

Examples

Run this code
mongo <- mongo.create()
if (mongo.is.connected(mongo))
    print(mongo.get.socket(mongo))

Run the code above in your browser using DataLab