Camel.NetworkSettings¶
- Implementations:
None
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
None
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/c |
Authentication mechanism name |
||
r/w/c |
Host name for the network service |
||
r/w/c |
Port number for the network service |
||
r/w/c |
Method used to establish a network connection |
||
r/w/c |
User name for the network account |
Signals¶
None
Fields¶
None
Class Details¶
- class Camel.NetworkSettings¶
- Bases:
- Structure:
New in version 3.2.
- dup_auth_mechanism()¶
- Returns:
a newly-allocated copy of
Camel.NetworkSettings
:auth-mechanism
- Return type:
Thread-safe variation of
Camel.NetworkSettings.get_auth_mechanism
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.4.
- dup_host()¶
- Returns:
a newly-allocated copy of
Camel.NetworkSettings
:host
- Return type:
Thread-safe variation of
Camel.NetworkSettings.get_host
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.4.
- dup_host_ensure_ascii()¶
- Returns:
a newly-allocated copy of
Camel.NetworkSettings
:host
with only ASCII letters.- Return type:
Just like
Camel.NetworkSettings.dup_host
(), only makes sure that the returned host name will be converted into its ASCII form in case of IDNA value.New in version 3.16.
- dup_user()¶
- Returns:
a newly-allocated copy of
Camel.NetworkSettings
:user
- Return type:
Thread-safe variation of
Camel.NetworkSettings.get_user
(). Use this function when accessing self from multiple threads.The returned string should be freed with
GLib.free
() when no longer needed.New in version 3.4.
- get_auth_mechanism()¶
-
Returns the mechanism name used to authenticate to a network service. Often this refers to a SASL mechanism such as “LOGIN” or “GSSAPI”.
New in version 3.4.
- get_host()¶
- Returns:
the host name of a network service
- Return type:
Returns the host name used to authenticate to a network service.
New in version 3.4.
- get_port()¶
- Returns:
the port number of a network service
- Return type:
Returns the port number used to authenticate to a network service.
New in version 3.4.
- get_security_method()¶
- Returns:
the security method
- Return type:
Returns the method used to establish a secure (or unsecure) network connection.
New in version 3.2.
- get_user()¶
- Returns:
the user name of a network service
- Return type:
Returns the user name used to authenticate to a network service.
New in version 3.4.
- set_auth_mechanism(auth_mechanism)¶
-
Sets the mechanism name used to authenticate to a network service. Often this refers to a SASL mechanism such as “LOGIN” or “GSSAPI”. The
Camel.NetworkSettings
:auth-mechanism
property is automatically stripped of leading and trailing whitespace.New in version 3.4.
- set_host(host)¶
-
Sets the host name used to authenticate to a network service. The
Camel.NetworkSettings
:host
property is automatically stripped of leading and trailing whitespace.New in version 3.4.
- set_port(port)¶
- Parameters:
port (
int
) – a port number
Sets the port number used to authenticate to a network service.
New in version 3.4.
- set_security_method(method)¶
- Parameters:
method (
Camel.NetworkSecurityMethod
) – the security method
Sets the method used to establish a secure (or unsecure) network connection. Note that changing this setting has no effect on an already-established network connection.
New in version 3.2.
Property Details¶
- Camel.NetworkSettings.props.auth_mechanism¶
-
Authentication mechanism name
- Camel.NetworkSettings.props.host¶
-
Host name for the network service
- Camel.NetworkSettings.props.port¶
-
Port number for the network service
- Camel.NetworkSettings.props.security_method¶
- Name:
security-method
- Type:
- Default Value:
- Flags:
Method used to establish a network connection