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
Derived Implementations
Keyboard shortcuts
- ?
- Show this help dialog
- S
- Focus the search field
- ⇤
- Move up in search results
- ⇥
- Move down in search results
- ⏎
- Go to active search result
Search tricks
Prefix searches with a type followed by a colon (e.g.
fn:
) to restrict the search to a given type.
Accepted types are: fn
, mod
,
struct
, enum
,
trait
, typedef
(or
tdef
).