Documentation for the Unreal C++ Library
|
#include <PVROBeacon.h>
Public Member Functions | |
FPVROSession () | |
virtual | ~FPVROSession () |
bool | BroadcastPacket (uint8 *Packet, int32 Length) |
bool | BroadcastPacketFromSocket (uint8 *Packet, int32 Length) |
void | CreateClientQueryPacket (FNboSerializeToBuffer &Packet, uint64 ClientNonce) |
void | CreateHostResponsePacket (FNboSerializeToBuffer &Packet, uint64 ClientNonce) |
DEFINE_ONLINE_DELEGATE (OnSearchingTimeout) | |
DEFINE_ONLINE_DELEGATE_THREE_PARAM (OnValidQueryPacket, uint8 *, int32, uint64) | |
DEFINE_ONLINE_DELEGATE_TWO_PARAM (OnValidResponsePacket, uint8 *, int32) | |
ELanBeaconState::Type | GetBeaconState () const |
bool | Host (FOnValidQueryPacketDelegate &QueryDelegate, int32 Port=-1) |
bool | Search (class FNboSerializeToBuffer &Packet, FOnValidResponsePacketDelegate &ResponseDelegate, FOnSearchingTimeoutDelegate &TimeoutDelegate) |
void | StopLANSession () |
void | Tick (float DeltaTime) |
Public Attributes | |
int32 | ClientSessionPort |
int32 | HostSessionAddress |
int32 | HostSessionPort |
bool | IsLANMatch |
int32 | LanAnnouncePort |
class FPVROBeacon * | LanBeacon |
ELanBeaconState::Type | LanBeaconState |
int32 | LanGameUniqueId |
uint64 | LanNonce |
int32 | LanPacketPlatformMask |
float | LanQueryTimeLeft |
float | LanQueryTimeout |
Protected Member Functions | |
bool | IsValidLanQueryPacket (const uint8 *Packet, uint32 Length, uint64 &ClientNonce) |
bool | IsValidLanResponsePacket (const uint8 *Packet, uint32 Length) |
Encapsulate functionality related to LAN and Internet broadcast data
Definition at line 126 of file PVROBeacon.h.
|
inline |
Definition at line 184 of file PVROBeacon.h.
|
inlinevirtual |
Definition at line 204 of file PVROBeacon.h.
bool FPVROSession::BroadcastPacket | ( | uint8 * | Packet, |
int32 | Length ) |
Uses the cached broadcast address to send packet to a subnet
Packet | the packet to send |
Length | the size of the packet to send |
Definition at line 418 of file PVROBeacon.cpp.
bool FPVROSession::BroadcastPacketFromSocket | ( | uint8 * | Packet, |
int32 | Length ) |
Uses the cached broadcast address to send packet to a subnet
Packet | the packet to send |
Length | the size of the packet to send |
Definition at line 433 of file PVROBeacon.cpp.
void FPVROSession::CreateClientQueryPacket | ( | FNboSerializeToBuffer & | Packet, |
uint64 | ClientNonce ) |
Definition at line 404 of file PVROBeacon.cpp.
void FPVROSession::CreateHostResponsePacket | ( | FNboSerializeToBuffer & | Packet, |
uint64 | ClientNonce ) |
create packet of MAX size
Definition at line 390 of file PVROBeacon.cpp.
FPVROSession::DEFINE_ONLINE_DELEGATE | ( | OnSearchingTimeout | ) |
FPVROSession::DEFINE_ONLINE_DELEGATE_THREE_PARAM | ( | OnValidQueryPacket | , |
uint8 * | , | ||
int32 | , | ||
uint64 | ) |
FPVROSession::DEFINE_ONLINE_DELEGATE_TWO_PARAM | ( | OnValidResponsePacket | , |
uint8 * | , | ||
int32 | ) |
|
inline |
bool FPVROSession::Host | ( | FOnValidQueryPacketDelegate & | QueryDelegate, |
int32 | Port = -1 ) |
Creates the LAN beacon for queries/advertising servers
QueryDelegate | delegate to fire when a client query is received |
Port | if -1, use LanAnnouncePort, otherwise use this port |
Definition at line 209 of file PVROBeacon.cpp.
|
protected |
Determines if the packet header is valid or not
Packet | the packet data to check |
Length | the size of the packet buffer |
ClientNonce | the nonce to check against |
Definition at line 448 of file PVROBeacon.cpp.
|
protected |
Determines if the packet header is valid or not
Packet | the packet data to check |
Length | the size of the packet buffer |
Definition at line 486 of file PVROBeacon.cpp.
bool FPVROSession::Search | ( | class FNboSerializeToBuffer & | Packet, |
FOnValidResponsePacketDelegate & | ResponseDelegate, | ||
FOnSearchingTimeoutDelegate & | TimeoutDelegate ) |
Creates the LAN beacon for queries/advertising servers
Packet | packet to be search when broadcasting the search |
ResponseDelegate | delegate to fire when a server response is received |
TimeoutDelegate | delegate to fire if we exceed maximum search time |
Definition at line 256 of file PVROBeacon.cpp.
void FPVROSession::StopLANSession | ( | ) |
Stops the LAN beacon from accepting broadcasts
Definition at line 319 of file PVROBeacon.cpp.
void FPVROSession::Tick | ( | float | DeltaTime | ) |
Definition at line 337 of file PVROBeacon.cpp.
int32 FPVROSession::ClientSessionPort |
Definition at line 159 of file PVROBeacon.h.
int32 FPVROSession::HostSessionAddress |
Definition at line 155 of file PVROBeacon.h.
int32 FPVROSession::HostSessionPort |
Definition at line 157 of file PVROBeacon.h.
bool FPVROSession::IsLANMatch |
Definition at line 161 of file PVROBeacon.h.
int32 FPVROSession::LanAnnouncePort |
Port to listen on for LAN queries/responses
Definition at line 153 of file PVROBeacon.h.
class FPVROBeacon* FPVROSession::LanBeacon |
LAN beacon for packet broadcast
Definition at line 173 of file PVROBeacon.h.
ELanBeaconState::Type FPVROSession::LanBeaconState |
State of the LAN beacon
Definition at line 176 of file PVROBeacon.h.
int32 FPVROSession::LanGameUniqueId |
Unique id to keep UE3 games from seeing each others' LAN packets
Definition at line 164 of file PVROBeacon.h.
uint64 FPVROSession::LanNonce |
Used by a client to uniquely identify itself during LAN match discovery
Definition at line 179 of file PVROBeacon.h.
int32 FPVROSession::LanPacketPlatformMask |
Mask containing which platforms can cross communicate
Definition at line 167 of file PVROBeacon.h.
float FPVROSession::LanQueryTimeLeft |
The amount of time before the LAN query is considered done
Definition at line 182 of file PVROBeacon.h.
float FPVROSession::LanQueryTimeout |
The amount of time to wait before timing out a LAN query request
Definition at line 170 of file PVROBeacon.h.