Struct xpcom::interfaces::nsPISocketTransportService
[−]
[src]
#[repr(C)]pub struct nsPISocketTransportService { /* fields omitted */ }
interface nsPISocketTransportService : nsIRoutedSocketTransportService
/**
* This is a private interface used by the internals of the networking library.
* It will never be frozen. Do not use it in external code.
*/
Methods
impl nsPISocketTransportService
[src]
pub fn coerce<T: nsPISocketTransportServiceCoerce>(&self) -> &T
[src]
Cast this nsPISocketTransportService
to one of its base interfaces.
impl nsPISocketTransportService
[src]
pub unsafe fn Init(&self) -> nsresult
[src]
/**
* init/shutdown routines.
*/
void init ();
pub unsafe fn Shutdown(&self, aXpcomShutdown: bool) -> nsresult
[src]
void shutdown (in bool aXpcomShutdown);
pub unsafe fn GetSendBufferSize(
&self,
aSendBufferSize: *mut int32_t
) -> nsresult
[src]
&self,
aSendBufferSize: *mut int32_t
) -> nsresult
/**
* controls the TCP sender window clamp
*/
readonly attribute long sendBufferSize;
pub unsafe fn GetOffline(&self, aOffline: *mut bool) -> nsresult
[src]
/**
* Controls whether the socket transport service is offline.
* Setting it offline will cause non-local socket detachment.
*/
attribute boolean offline;
pub unsafe fn SetOffline(&self, aOffline: bool) -> nsresult
[src]
/**
* Controls whether the socket transport service is offline.
* Setting it offline will cause non-local socket detachment.
*/
attribute boolean offline;
pub unsafe fn GetKeepaliveIdleTime(
&self,
aKeepaliveIdleTime: *mut int32_t
) -> nsresult
[src]
&self,
aKeepaliveIdleTime: *mut int32_t
) -> nsresult
/**
* Controls the default timeout (in seconds) for sending keepalive probes.
*/
readonly attribute long keepaliveIdleTime;
pub unsafe fn GetKeepaliveRetryInterval(
&self,
aKeepaliveRetryInterval: *mut int32_t
) -> nsresult
[src]
&self,
aKeepaliveRetryInterval: *mut int32_t
) -> nsresult
/**
* Controls the default interval (in seconds) between retrying keepalive probes.
*/
readonly attribute long keepaliveRetryInterval;
pub unsafe fn GetKeepaliveProbeCount(
&self,
aKeepaliveProbeCount: *mut int32_t
) -> nsresult
[src]
&self,
aKeepaliveProbeCount: *mut int32_t
) -> nsresult
/**
* Controls the default retransmission count for keepalive probes.
*/
readonly attribute long keepaliveProbeCount;
Methods from Deref<Target = nsIRoutedSocketTransportService>
pub fn coerce<T: nsIRoutedSocketTransportServiceCoerce>(&self) -> &T
[src]
Cast this nsIRoutedSocketTransportService
to one of its base interfaces.
pub unsafe fn CreateRoutedTransport(
&self,
aSocketTypes: *mut *const c_char,
aTypeCount: uint32_t,
aHost: &nsACString,
aPort: int32_t,
aHostRoute: &nsACString,
aPortRoute: int32_t,
aProxyInfo: *const nsIProxyInfo,
_retval: *mut *const nsISocketTransport
) -> nsresult
[src]
&self,
aSocketTypes: *mut *const c_char,
aTypeCount: uint32_t,
aHost: &nsACString,
aPort: int32_t,
aHostRoute: &nsACString,
aPortRoute: int32_t,
aProxyInfo: *const nsIProxyInfo,
_retval: *mut *const nsISocketTransport
) -> nsresult
nsISocketTransport createRoutedTransport ([array, size_is (aTypeCount)] in string aSocketTypes, in unsigned long aTypeCount, in AUTF8String aHost, in long aPort, in AUTF8String aHostRoute, in long aPortRoute, in nsIProxyInfo aProxyInfo);
Trait Implementations
impl XpCom for nsPISocketTransportService
[src]
const IID: nsIID
IID: nsIID = nsID(418855921, 45915, 19323, [170, 154, 17, 188, 189, 188, 56, 156])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsPISocketTransportService
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsPISocketTransportService
[src]
type Target = nsIRoutedSocketTransportService
The resulting type after dereferencing.
fn deref(&self) -> &nsIRoutedSocketTransportService
[src]
Dereferences the value.