iOS SDK API Reference

Classes | Typedefs | Enumerations
SKWPeer.h File Reference
#import "SKWHeaders.h"

Go to the source code of this file.

Classes

class  SKWPeer
 A peer class. More...
 

Typedefs

typedef void(^ SKWPeerEventCallback) (NSObject *__nullable arg)
 Peer Event Callback signature.
 

Enumerations

enum  SKWPeerEventEnum {
  SKW_PEER_EVENT_OPEN, SKW_PEER_EVENT_CONNECTION, SKW_PEER_EVENT_CALL, SKW_PEER_EVENT_CLOSE,
  SKW_PEER_EVENT_DISCONNECTED, SKW_PEER_EVENT_ERROR, SKW_PEER_EVENT_AUTH_EXPIRES_IN
}
 Peer event type. More...
 

Enumeration Type Documentation

◆ SKWPeerEventEnum

Peer event type.

Enumerator
SKW_PEER_EVENT_OPEN 

Emitted when a connection to the PeerServer is established.

SKW_PEER_EVENT_CONNECTION 

Emitted when a new data connection is established from a remote peer.

SKW_PEER_EVENT_CALL 

Emitted when a remote peer attempts to call you.

SKW_PEER_EVENT_CLOSE 

Emitted when the peer is destroyed and can no longer accept or create any new connections.

SKW_PEER_EVENT_DISCONNECTED 

Emitted when the peer is disconnected from the signalling server, either manually or because the connection to the signalling server was lost.

SKW_PEER_EVENT_ERROR 

Errors on the peer are almost always fatal and will destroy the peer.