Symbian platform (C++)
SDK native APIs, runtime and tooling
Loading...
Searching...
No Matches
symbian::api::connectivity Namespace Reference

Classes

class  ActiveTcpListener
 A single pending RSocket accept managed by a Symbian active scheduler. More...
 
class  HttpClient
 Native HTTP client over the existing worker-owned TCP runtime. More...
 
class  HttpServer
 Native bounded HTTP listener; each accepted exchange owns its socket. More...
 
struct  NativeActiveTcpListener
 
struct  NativeTcpClient
 
struct  NativeTcpListener
 
struct  NativeTcpSession
 
class  TcpAcceptObserver
 Receives one accepted stream or native error on the event thread. More...
 
class  TcpByteStream
 Owning TCP transport for both HTTP and WebSocket streams. More...
 
class  TcpClient
 One connected IPv4 TCP stream backed by Symbian RSocket. More...
 
class  TcpListener
 One bounded IPv4 listener backed by Symbian RSocket. More...
 
class  TlsStream
 Worker-owned TLS transport for outbound HTTP and inbound sessions. More...
 
class  WebSocketServer
 Reusable bounded IPv4 WebSocket listener on a worker thread. More...
 
class  WebSocketStream
 Synchronous worker-owned WebSocket using the SDK TCP runtime. More...
 

Typedefs

using NativeAcceptCallback = void(*)(void *context, NativeTcpClient *accepted, int result)
 
using TlsServer = TlsStream
 

Enumerations

enum class  TlsVersion { kTls12 , kTls13 }
 One protocol version supported by the vendored Mbed TLS server. More...
 

Functions

absl::StatusOr< std::array< std::uint8_t, 4 > > BroadcastProbe (std::uint16_t port, std::span< const std::uint8_t > request, std::span< const std::uint8_t > expected_reply, absl::Time deadline=absl::InfiniteFuture())
 Find a local IPv4 peer by one UDP broadcast request and exact reply.
 
int SymbianDeviceActiveTcpListen (unsigned address, unsigned port, bool share_with_workers, void *context, NativeAcceptCallback callback, NativeActiveTcpListener **output)
 
int SymbianDeviceActiveTcpAcceptNext (NativeActiveTcpListener *listener)
 
void SymbianDeviceActiveTcpClose (NativeActiveTcpListener *listener)
 
int WaitForSocketRequest (RSocket &socket, TRequestStatus &request, std::int64_t deadline, void(RSocket::*cancel)())
 
int WaitForResolverRequest (RHostResolver &resolver, TRequestStatus &request, std::int64_t deadline)
 
int SymbianDeviceResolveIpv4 (const char *hostname, int length, unsigned *address, std::int64_t deadline)
 
int SymbianDeviceTcpSetNoDelay (NativeTcpClient *client, bool enabled)
 
void SymbianDeviceTcpClose (NativeTcpClient *client)
 
int SymbianDeviceTcpConnect (unsigned address, unsigned port, NativeTcpClient **output, std::int64_t deadline)
 
void SymbianDeviceTcpListenerClose (NativeTcpListener *listener)
 
int SymbianDeviceTcpListen (unsigned address, unsigned port, bool share_with_workers, NativeTcpListener **output)
 
int SymbianDeviceTcpBeginAccept (NativeTcpListener *listener, TRequestStatus *status, NativeTcpClient **output)
 
void SymbianDeviceTcpCancelAccept (NativeTcpListener *listener)
 
int SymbianDeviceTcpAccept (NativeTcpListener *listener, NativeTcpClient **output, std::int64_t deadline)
 
int SymbianDeviceTcpSend (NativeTcpClient *client, const unsigned char *bytes, int length, std::int64_t deadline)
 
int SymbianDeviceTcpReceive (NativeTcpClient *client, unsigned char *bytes, int capacity, int *received, std::int64_t deadline)
 

Typedef Documentation

◆ NativeAcceptCallback

using symbian::api::connectivity::NativeAcceptCallback = typedef void (*)(void* context, NativeTcpClient* accepted, int result)

◆ TlsServer

Enumeration Type Documentation

◆ TlsVersion

One protocol version supported by the vendored Mbed TLS server.

Enumerator
kTls12 
kTls13 

Function Documentation

◆ BroadcastProbe()

absl::StatusOr< std::array< std::uint8_t, 4 > > symbian::api::connectivity::BroadcastProbe ( std::uint16_t  port,
std::span< const std::uint8_t >  request,
std::span< const std::uint8_t >  expected_reply,
absl::Time  deadline = absl::InfiniteFuture() 
)

Find a local IPv4 peer by one UDP broadcast request and exact reply.

The reply is application-defined and must be authenticated by the caller when its address will be trusted. Both messages are limited to 64 bytes. The receive request is cancelled and drained when deadline expires.

◆ SymbianDeviceActiveTcpAcceptNext()

int symbian::api::connectivity::SymbianDeviceActiveTcpAcceptNext ( NativeActiveTcpListener *  listener)

◆ SymbianDeviceActiveTcpClose()

void symbian::api::connectivity::SymbianDeviceActiveTcpClose ( NativeActiveTcpListener *  listener)

◆ SymbianDeviceActiveTcpListen()

int symbian::api::connectivity::SymbianDeviceActiveTcpListen ( unsigned  address,
unsigned  port,
bool  share_with_workers,
void *  context,
NativeAcceptCallback  callback,
NativeActiveTcpListener **  output 
)

◆ SymbianDeviceResolveIpv4()

int symbian::api::connectivity::SymbianDeviceResolveIpv4 ( const char *  hostname,
int  length,
unsigned *  address,
std::int64_t  deadline 
)

◆ SymbianDeviceTcpAccept()

int symbian::api::connectivity::SymbianDeviceTcpAccept ( NativeTcpListener *  listener,
NativeTcpClient **  output,
std::int64_t  deadline 
)

◆ SymbianDeviceTcpBeginAccept()

int symbian::api::connectivity::SymbianDeviceTcpBeginAccept ( NativeTcpListener *  listener,
TRequestStatus *  status,
NativeTcpClient **  output 
)

◆ SymbianDeviceTcpCancelAccept()

void symbian::api::connectivity::SymbianDeviceTcpCancelAccept ( NativeTcpListener *  listener)

◆ SymbianDeviceTcpClose()

void symbian::api::connectivity::SymbianDeviceTcpClose ( NativeTcpClient *  client)

◆ SymbianDeviceTcpConnect()

int symbian::api::connectivity::SymbianDeviceTcpConnect ( unsigned  address,
unsigned  port,
NativeTcpClient **  output,
std::int64_t  deadline 
)

◆ SymbianDeviceTcpListen()

int symbian::api::connectivity::SymbianDeviceTcpListen ( unsigned  address,
unsigned  port,
bool  share_with_workers,
NativeTcpListener **  output 
)

◆ SymbianDeviceTcpListenerClose()

void symbian::api::connectivity::SymbianDeviceTcpListenerClose ( NativeTcpListener *  listener)

◆ SymbianDeviceTcpReceive()

int symbian::api::connectivity::SymbianDeviceTcpReceive ( NativeTcpClient *  client,
unsigned char *  bytes,
int  capacity,
int *  received,
std::int64_t  deadline 
)

◆ SymbianDeviceTcpSend()

int symbian::api::connectivity::SymbianDeviceTcpSend ( NativeTcpClient *  client,
const unsigned char *  bytes,
int  length,
std::int64_t  deadline 
)

◆ SymbianDeviceTcpSetNoDelay()

int symbian::api::connectivity::SymbianDeviceTcpSetNoDelay ( NativeTcpClient *  client,
bool  enabled 
)

◆ WaitForResolverRequest()

int symbian::api::connectivity::WaitForResolverRequest ( RHostResolver &  resolver,
TRequestStatus &  request,
std::int64_t  deadline 
)

◆ WaitForSocketRequest()

int symbian::api::connectivity::WaitForSocketRequest ( RSocket &  socket,
TRequestStatus &  request,
std::int64_t  deadline,
void(RSocket::*)()  cancel 
)