stream
Contents
| Name | Description |
|---|---|
| getpipe( ) | Get the pipe from this stream. |
| readdata( size ) | Read some data from the stream |
| readdouble( ) | Read double percision float from the stream |
| readint( ) | Read an integer from the stream |
| readstring( ) | Read a string from the stream |
| setpipe( pipe ) | Sets the pipe for the stream. |
| writedata( data ) | Write some data to the stream |
| writedouble( d ) | Write a double percision float to the stream |
| writeint( i ) | Write an integer to the stream |
| writestring( s ) | Write a string to the stream |
getpipe( )
Get the pipe from this stream.
Gets the pipe from this stream, using the return value can be used with setpipe() later to identify clients of a PAIR pipe
Returns
-
The pipe connected to the associated stream
Defined at shared/lua_api/load_net.cpp:251
readdata( number size )
Read some data from the stream
Parameters
-
size (number)
The size of the data to read from the stream
Returns
-
The data read from the stream
Defined at shared/lua_api/load_net.cpp:181
readdouble( )
Read double percision float from the stream
Returns
-
The number read from the stream
Defined at shared/lua_api/load_net.cpp:165
readint( )
Read an integer from the stream
Returns
-
The number read from the stream
Defined at shared/lua_api/load_net.cpp:145
readstring( )
Read a string from the stream
Returns
-
The string read from the stream
Defined at shared/lua_api/load_net.cpp:199
setpipe( pipe pipe )
Sets the pipe for the stream.
Sets the pipe for the stream, so that content is delivered to a specific client.
Parameters
-
pipe (pipe)
The pipe for the specific client, gotten with stream:getpipe()
Defined at shared/lua_api/load_net.cpp:268
writedata( string data )
Write some data to the stream
Parameters
-
data (string)
The number to write to the stream
Returns
-
The number of bytes written to the stream
Defined at shared/lua_api/load_net.cpp:286
writedouble( number d )
Write a double percision float to the stream
Parameters
-
d (number)
The number to write to the stream
Defined at shared/lua_api/load_net.cpp:233
writeint( number i )
Write an integer to the stream
Parameters
-
i (number)
The integer to write to the stream
Defined at shared/lua_api/load_net.cpp:215
writestring( string s )
Write a string to the stream
Parameters
-
s (string)
The string to the stream
Defined at shared/lua_api/load_net.cpp:305