| Top |
| pthread_mutex_t * | ags_osc_connection_get_class_mutex () |
| gboolean | ags_osc_connection_test_flags () |
| void | ags_osc_connection_set_flags () |
| void | ags_osc_connection_unset_flags () |
| gboolean | ags_osc_connection_timeout_expired () |
| unsigned char * | ags_osc_connection_read_bytes () |
| gint64 | ags_osc_connection_write_response () |
| void | ags_osc_connection_close () |
| AgsOscConnection * | ags_osc_connection_new () |
| #define | AGS_IS_OSC_CONNECTION() |
| #define | AGS_OSC_CONNECTION() |
| #define | AGS_OSC_CONNECTION_CLASS() |
| #define | AGS_OSC_CONNECTION_GET_CLASS() |
| GType | ags_osc_connection_get_type () |
| #define | AGS_OSC_CONNECTION_TIMEOUT_USEC |
| #define | AGS_OSC_CONNECTION_DEAD_LINE_USEC |
| #define | AGS_OSC_CONNECTION_CHUNK_SIZE |
| #define | AGS_OSC_CONNECTION_DEFAULT_CACHE_DATA_LENGTH |
| enum | AgsOscConnectionFlags |
| #define | AGS_TYPE_OSC_CONNECTION |
| struct | AgsOscConnection |
| struct | AgsOscConnectionClass |
pthread_mutex_t *
ags_osc_connection_get_class_mutex ();
Use this function's returned mutex to access mutex fields.
Since: 2.1.0
gboolean ags_osc_connection_test_flags (AgsOscConnection *osc_connection,guint flags);
Test flags
to be set on osc_connection
.
Since: 2.1.0
void ags_osc_connection_set_flags (AgsOscConnection *osc_connection,guint flags);
Set flags.
Since: 2.1.0
void ags_osc_connection_unset_flags (AgsOscConnection *osc_connection,guint flags);
Unset flags.
Since: 2.1.0
gboolean ags_osc_connection_timeout_expired (struct timespec *start_time,struct timespec *timeout_delay);
Check start_time
plus timeout_delay
against current time.
Since: 2.1.10
unsigned char * ags_osc_connection_read_bytes (AgsOscConnection *osc_connection,guint *data_length);
Read bytes.
osc_connection |
the AgsOscConnection |
|
data_length |
the return location of byte array's length |
Since: 2.1.0
gint64 ags_osc_connection_write_response (AgsOscConnection *osc_connection,GObject *osc_response);
Write response.
Since: 2.1.0
void
ags_osc_connection_close (AgsOscConnection *osc_connection);
Close osc_connection
.
Since: 2.1.0
AgsOscConnection *
ags_osc_connection_new (GObject *osc_server);
Creates a new instance of AgsOscConnection
Since: 2.1.0
#define AGS_IS_OSC_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), AGS_TYPE_OSC_CONNECTION))
#define AGS_OSC_CONNECTION(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj), AGS_TYPE_OSC_CONNECTION, AgsOscConnection))
#define AGS_OSC_CONNECTION_CLASS(class) (G_TYPE_CHECK_CLASS_CAST((class), AGS_TYPE_OSC_CONNECTION, AgsOscConnectionClass))
#define AGS_OSC_CONNECTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), AGS_TYPE_OSC_CONNECTION, AgsOscConnectionClass))
#define AGS_OSC_CONNECTION_DEFAULT_CACHE_DATA_LENGTH (256)
struct AgsOscConnectionClass {
GObjectClass gobject;
unsigned char* (*read_bytes)(AgsOscConnection *osc_connection,
guint *data_length);
gint64 (*write_response)(AgsOscConnection *osc_connection,
GObject *osc_response);
void (*close)(AgsOscConnection *osc_connection);
};
“ip4” property“ip4” gchar *
The IPv4 address as string of the server connection.
Flags: Read / Write
Default value: NULL
Since: 2.1.0
“ip6” property“ip6” gchar *
The IPv6 address as string of the server connection.
Flags: Read / Write
Default value: NULL
Since: 2.1.0
“osc-server” property“osc-server” AgsOscServer *
The assigned AgsOscServer.
Flags: Read / Write
Since: 2.1.0
“close” signalvoid user_function (AgsOscConnection *osc_connection, gpointer user_data)
The ::close signal is emited as closing the file descriptor.
osc_connection |
the AgsOscConnection |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.1.0
“read-bytes” signalgpointer user_function (AgsOscConnection *osc_connection, gpointer data_length, gpointer user_data)
The ::read-bytes signal is emited while read bytes.
osc_connection |
the AgsOscConnection |
|
data_length |
the return location of byte array's length |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.1.0
“write-response” signalgint64 user_function (AgsOscConnection *osc_connection, GObject *osc_response, gpointer user_data)
The ::write-response signal is emited while write response.
osc_connection |
the AgsOscConnection |
|
osc_response |
the AgsOscResponse |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
Since: 2.1.0