File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -1273,6 +1273,11 @@ def close
1273
1273
@conn = nil
1274
1274
end
1275
1275
1276
+ # Internal: Reads and parses data from the configured connection.
1277
+ #
1278
+ # - syntax: the BER syntax to use to parse the read data with
1279
+ #
1280
+ # Returns basic BER objects.
1276
1281
def read ( syntax = Net ::LDAP ::AsnSyntax )
1277
1282
instrument "read.net_ldap_connection" , :syntax => syntax do |payload |
1278
1283
@conn . read_ber ( syntax ) do |id , content_length |
@@ -1283,6 +1288,12 @@ def read(syntax = Net::LDAP::AsnSyntax)
1283
1288
end
1284
1289
private :read
1285
1290
1291
+ # Internal: Writes the given packet to the configured connection.
1292
+ #
1293
+ # - packet: the BER data packet to write on the socket.
1294
+ #
1295
+ # Returns the return value from writing to the connection, which in some
1296
+ # cases is the Integer number of bytes written to the socket.
1286
1297
def write ( packet )
1287
1298
instrument "write.net_ldap_connection" , :packet => packet do
1288
1299
@conn . write ( packet )
You can’t perform that action at this time.
0 commit comments