Struct xpcom::interfaces::nsIUDPSocketChild
[−]
[src]
#[repr(C)]pub struct nsIUDPSocketChild { /* fields omitted */ }
interface nsIUDPSocketChild : nsISupports
Methods
impl nsIUDPSocketChild
[src]
pub fn coerce<T: nsIUDPSocketChildCoerce>(&self) -> &T
[src]
Cast this nsIUDPSocketChild
to one of its base interfaces.
impl nsIUDPSocketChild
[src]
pub unsafe fn GetLocalPort(&self, aLocalPort: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short localPort;
pub unsafe fn GetLocalAddress(&self, aLocalAddress: &mut nsACString) -> nsresult
[src]
readonly attribute AUTF8String localAddress;
pub unsafe fn GetFilterName(&self, aFilterName: &mut nsACString) -> nsresult
[src]
attribute AUTF8String filterName;
pub unsafe fn SetFilterName(&self, aFilterName: &nsACString) -> nsresult
[src]
attribute AUTF8String filterName;
pub unsafe fn SetBackgroundSpinsEvents(&self) -> nsresult
[src]
[noscript] void setBackgroundSpinsEvents ();
pub unsafe fn Bind(
&self,
socket: *const nsIUDPSocketInternal,
principal: *const nsIPrincipal,
host: &nsACString,
port: uint16_t,
addressReuse: bool,
loopback: bool,
recvBufferSize: uint32_t,
sendBufferSize: uint32_t,
mainThreadTarget: *const nsIEventTarget
) -> nsresult
[src]
&self,
socket: *const nsIUDPSocketInternal,
principal: *const nsIPrincipal,
host: &nsACString,
port: uint16_t,
addressReuse: bool,
loopback: bool,
recvBufferSize: uint32_t,
sendBufferSize: uint32_t,
mainThreadTarget: *const nsIEventTarget
) -> nsresult
void bind (in nsIUDPSocketInternal socket, in nsIPrincipal principal, in AUTF8String host, in unsigned short port, in bool addressReuse, in bool loopback, in uint32_t recvBufferSize, in uint32_t sendBufferSize, [optional] in nsIEventTarget mainThreadTarget);
pub unsafe fn Connect(
&self,
socket: *const nsIUDPSocketInternal,
host: &nsACString,
port: uint16_t
) -> nsresult
[src]
&self,
socket: *const nsIUDPSocketInternal,
host: &nsACString,
port: uint16_t
) -> nsresult
void connect (in nsIUDPSocketInternal socket, in AUTF8String host, in unsigned short port);
pub unsafe fn Send(
&self,
host: &nsACString,
port: uint16_t,
bytes: *const uint8_t,
byteLength: uint32_t
) -> nsresult
[src]
&self,
host: &nsACString,
port: uint16_t,
bytes: *const uint8_t,
byteLength: uint32_t
) -> nsresult
void send (in AUTF8String host, in unsigned short port, [array, size_is (byteLength), const] in uint8_t bytes, in unsigned long byteLength);
pub unsafe fn SendWithAddr(
&self,
addr: *const nsINetAddr,
bytes: *const uint8_t,
byteLength: uint32_t
) -> nsresult
[src]
&self,
addr: *const nsINetAddr,
bytes: *const uint8_t,
byteLength: uint32_t
) -> nsresult
void sendWithAddr (in nsINetAddr addr, [array, size_is (byteLength), const] in uint8_t bytes, in unsigned long byteLength);
pub unsafe fn SendBinaryStream(
&self,
host: &nsACString,
port: uint16_t,
stream: *const nsIInputStream
) -> nsresult
[src]
&self,
host: &nsACString,
port: uint16_t,
stream: *const nsIInputStream
) -> nsresult
void sendBinaryStream (in AUTF8String host, in unsigned short port, in nsIInputStream stream);
pub unsafe fn Close(&self) -> nsresult
[src]
void close ();
pub unsafe fn JoinMulticast(
&self,
multicastAddress: &nsACString,
iface: &nsACString
) -> nsresult
[src]
&self,
multicastAddress: &nsACString,
iface: &nsACString
) -> nsresult
void joinMulticast (in AUTF8String multicastAddress, in AUTF8String iface);
pub unsafe fn LeaveMulticast(
&self,
multicastAddress: &nsACString,
iface: &nsACString
) -> nsresult
[src]
&self,
multicastAddress: &nsACString,
iface: &nsACString
) -> nsresult
void leaveMulticast (in AUTF8String multicastAddress, in AUTF8String iface);
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIUDPSocketChild
[src]
const IID: nsIID
IID: nsIID = nsID(510318395, 27653, 19832, [154, 136, 45, 53, 123, 136, 245, 139])
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 nsIUDPSocketChild
[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 nsIUDPSocketChild
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.