Functions that deal with IPC client objects.
Function Documentation
Retrieves the data that has been associated with the given IPC client.
- Parameters:
-
- Returns:
- The data associated with the IPC client.
- Since :
- 3.0
Sets the IPC data associated with the given IPC client to data
.
- Parameters:
-
cl | The given IPC client. |
data | The data to associate with the IPC client. |
- Since :
- 3.0
Gets the max data payload size for an Ipc message in bytes.
- Parameters:
-
- Returns:
- The maximum data payload size in bytes on success,
-1
on failure.
- Since :
- 3.0
Sets the max data payload size for an Ipc message in bytes.
- Parameters:
-
cl | The given client. |
size | The maximum data payload size in bytes. |
- Since :
- 3.0
Closes the connection and frees memory allocated to the given IPC client.
- Parameters:
-
- Returns:
- Data associated with the client.
- Since :
- 3.0
Flushes all pending data to the given client. Will return when done.
- Parameters:
-
- Since :
- 3.0
Gets the IP address of a client that has been connected to.
- Parameters:
-
- Returns:
- A pointer to an internal string that contains the IP address of the connected server in the form "XXX.YYY.ZZZ.AAA" IP notation. This string should not be modified or trusted to stay valid after deletion for the
cl
object. If no IP is known NULL
is returned.
- Since :
- 3.0
Sends a message to the given IPC client.
- Parameters:
-
cl | The given IPC client. |
major | Major opcode of the message. |
minor | Minor opcode of the message. |
ref | Reference number of the message. |
ref_to | Reference number of the message this message refers to. |
response | Requires response. |
data | The data to send as part of the message. |
size | Length of the data, in bytes, to send. |
- Returns:
- The number of bytes sent.
0
will be returned if there is an error.
- Since :
- 3.0
Retrieves the IPC server that the given IPC client is connected to.
- Parameters:
-
- Returns:
- The IPC server the IPC client is connected to.
- Since :
- 3.0