write


Description:

[ Version ( deprecated = true , deprecated_since = "1.18" ) ]
public Result write (uint8[] data, TimeVal timeout)

Warning: write is deprecated since 1.18.

Attempt to write data.length bytes of data to the connected this, blocking up to the specified timeout.

timeout can be null, in which case this function might block forever.

This function can be cancelled with flush.

Parameters:

this

a Connection

data

the data to write

timeout

a timeout value or null

size

the size of data

Returns:

OK on success.