Struct ppapi::ffi::Struct_PPB_TCPSocket_1_0Experimental [-]  [+] [src]

pub struct Struct_PPB_TCPSocket_1_0 {
    pub Create: Option< extern "C" fn(instance: PP_Instance) -> PP_Resource>,
    pub IsTCPSocket: Option< extern "C" fn(resource: PP_Resource) -> PP_Bool>,
    pub Connect: Option< extern "C" fn(tcp_socket: PP_Resource, addr: PP_Resource, callback: Struct_PP_CompletionCallback) -> int32_t>,
    pub GetLocalAddress: Option< extern "C" fn(tcp_socket: PP_Resource) -> PP_Resource>,
    pub GetRemoteAddress: Option< extern "C" fn(tcp_socket: PP_Resource) -> PP_Resource>,
    pub Read: Option< extern "C" fn(tcp_socket: PP_Resource, buffer: *mut c_char, bytes_to_read: int32_t, callback: Struct_PP_CompletionCallback) -> int32_t>,
    pub Write: Option< extern "C" fn(tcp_socket: PP_Resource, buffer: *const c_char, bytes_to_write: int32_t, callback: Struct_PP_CompletionCallback) -> int32_t>,
    pub Close: Option< extern "C" fn(tcp_socket: PP_Resource)>,
    pub SetOption: Option< extern "C" fn(tcp_socket: PP_Resource, name: PP_TCPSocket_Option, value: Struct_PP_Var, callback: Struct_PP_CompletionCallback) -> int32_t>,
}

Fields

Create
IsTCPSocket
Connect
GetLocalAddress
GetRemoteAddress
Read
Write
Close
SetOption

Trait Implementations

impl Default for Struct_PPB_TCPSocket_1_0

fn default() -> Struct_PPB_TCPSocket_1_0

Derived Implementations

impl Copy for Struct_PPB_TCPSocket_1_0