Lines Matching refs:data
24 * to support service publishing and data transmission.
33 * @brief Declares unified data transmission interfaces.
35 * This file provides data transmission capabilities, including creating and removing a session server,
36 * opening and closing sessions, receiving data, and querying basic session information. \n
37 * You can use the interfaces to transmit data across the nearby devices that are discovered and networked.
275 * When a session is opened or closed, or there is data to process, the related callback is invoked.
308 * @brief Called when data is received.
310 * This callback is invoked to notify that data is received.
313 * @param data Indicates the pointer to the data received.
314 * User-defined data type, users should apply for memory by themselves.
315 * @param dataLen Indicates the length of the data received.
319 void (*OnBytesReceived)(int sessionId, const void *data, unsigned int dataLen);
327 * @param data Indicates the pointer to the message received.
332 void (*OnMessageReceived)(int sessionId, const void *data, unsigned int dataLen);
335 * @brief Called when stream data is received.
337 * This callback is invoked to notify that stream data is received.
340 * @param data Indicates the pointer to the stream data received.
341 * @param ext Indicates the pointer to the extended service data received.
342 * @param param Indicates the pointer to the stream data frame information.
346 void (*OnStreamReceived)(int sessionId, const StreamData *data, const StreamData *ext,
546 * @brief Sends data.
549 * @param data Indicates the pointer to the data to send, which cannot be <b>NULL</b>.
550 * @param len Indicates the length of the data to send.
553 * @return Returns <b>SOFTBUS_TRANS_SEND_LEN_BEYOND_LIMIT</b> if the data exceeds the maximum limit.
560 int SendBytes(int sessionId, const void *data, unsigned int len);
566 * @param data Indicates the pointer to the message to send, which cannot be <b>NULL</b>.
569 * @return Returns <b>SOFTBUS_INVALID_PARAM</b> if <b>data</b> is <b>NULL</b> or <b>len</b> is zero.
577 int SendMessage(int sessionId, const void *data, unsigned int len);
584 * @brief Sends stream data.
587 * @param data Indicates the pointer to the stream data to send, which cannot be <b>NULL</b>.
588 * @param ext Indicates the pointer to the extended stream data to send, which cannot be <b>NULL</b>.
598 int SendStream(int sessionId, const StreamData *data, const StreamData *ext, const StreamFrameInfo *param);
721 * @param valueSize Indicates the size of data which optionValue point to, which cannot be <b>0</b>.