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

pub struct Struct_PPB_TCPSocket_1_1 {
    pub Create: Option< extern "C" fn(instance: PP_Instance) -> PP_Resource>,
    pub IsTCPSocket: Option< extern "C" fn(resource: PP_Resource) -> PP_Bool>,
    pub Bind: Option< extern "C" fn(tcp_socket: PP_Resource, addr: PP_Resource, callback: Struct_PP_CompletionCallback) -> int32_t>,
    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 Listen: Option< extern "C" fn(tcp_socket: PP_Resource, backlog: int32_t, callback: Struct_PP_CompletionCallback) -> int32_t>,
    pub Accept: Option< extern "C" fn(tcp_socket: PP_Resource, accepted_tcp_socket: *mut PP_Resource, 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
Bind
Connect
GetLocalAddress
GetRemoteAddress
Read
Write
Listen
Accept
Close
SetOption

Trait Implementations

impl Default for Struct_PPB_TCPSocket_1_1

fn default() -> Struct_PPB_TCPSocket_1_1

Derived Implementations

impl Copy for Struct_PPB_TCPSocket_1_1