next up previous contents
Next: sendTo Up: Methods Previous: receiveFrom   Contents

send

Description

Sends data on a connected socket.


Syntax

socket.send(stream, len[, flag])


Parameters

stream
A StringStream object containing the output data.
len
Specifies the number of bytes to send.
flag
Optional. Integer. Specifies the way in which the call is made. It can be a combination of the following data:

Flag Description
0x04 Specifies that the data should not be subject to routing.
0x01 Process out-of-band data


Returns

Integer. The number of bytes sent.




Copyright ©2000-2010 Shanghai TopCMM Software Technologies. All Rights Reserved.