op_send()
Note: Requires Shared Code functionality
Abstract
Sends a message to a connected socket.
Syntax
op_send (sockfd, buf, len, flags)
| Argument | Type | Description |
|---|---|---|
sockfd |
int |
File descriptor of the sending socket |
buf |
const void * |
Buffer containing the message to send |
len |
size_t |
Length of message |
flags |
int |
not used (pass as 0) |
Return Type
int
Number of characters sent; -1 if unsuccessful.
Header
shared_code_support.h