Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
Terraria.Social.Steam.NetClientSocialModule Class Reference

Public Types

enum  ConnectionState { Inactive , Authenticating , Connected }
 

Public Member Functions

 NetClientSocialModule ()
 
override void Initialize ()
 
void ConnectToLobby (ulong lobbyId)
 
override void LaunchLocalServer (Process process, ServerMode mode)
 
override ulong GetLobbyId ()
 
override bool StartListening (SocketConnectionAccepted callback)
 
override void StopListening ()
 
override void Close (RemoteAddress address)
 
override bool CanInvite ()
 
override void OpenInviteInterface ()
 
override void Connect (RemoteAddress address)
 
override void CancelJoin ()
 
override void Shutdown ()
 
override bool IsConnected (RemoteAddress address)
 
override bool Send (RemoteAddress address, byte[] data, int length)
 
override int Receive (RemoteAddress address, byte[] data, int offset, int length)
 
override bool IsDataAvailable (RemoteAddress address)
 

Protected Member Functions

delegate void AsyncHandshake (CSteamID client)
 
virtual void OnLobbyChatMessage (LobbyChatMsg_t result)
 
P2PSessionState_t GetSessionState (CSteamID userId)
 
CSteamID RemoteAddressToSteamId (RemoteAddress address)
 

Protected Attributes

SteamP2PReader _reader
 
SteamP2PWriter _writer
 
Lobby _lobby = new Lobby()
 
ConcurrentDictionary< CSteamID, ConnectionState_connectionStateMap = new ConcurrentDictionary<CSteamID, ConnectionState>()
 
object _steamLock = new object()
 

Static Protected Attributes

const int ServerReadChannel = 1
 
const int ClientReadChannel = 2
 
const int LobbyMessageJoin = 1
 
const ushort GamePort = 27005
 
const ushort SteamPort = 27006
 
const ushort QueryPort = 27007
 
static readonly byte[] _handshake = new byte[10] { 10, 0, 93, 114, 101, 108, 111, 103, 105, 99 }
 

Private Member Functions

void CheckParameters ()
 
void Close (CSteamID user)
 
void OnLobbyJoinRequest (GameLobbyJoinRequested_t result)
 
void OnLobbyEntered (LobbyEnter_t result, bool failure)
 
void SendAuthTicket (CSteamID address)
 
void ClearAuthTicket ()
 
void OnDisconnect ()
 
void OnSessionConnectFail (P2PSessionConnectFail_t result)
 
void OnP2PSessionRequest (P2PSessionRequest_t result)
 

Private Attributes

Callback< GameLobbyJoinRequested_t > _gameLobbyJoinRequested
 
Callback< P2PSessionRequest_t > _p2pSessionRequest
 
Callback< P2PSessionConnectFail_t > _p2pSessionConnectfail
 
HAuthTicket _authTicket = HAuthTicket.Invalid
 
byte[] _authData = new byte[1021]
 
uint _authDataLength
 
bool _hasLocalHost
 
Callback< LobbyChatMsg_t > _lobbyChatMessage
 

Detailed Description

Definition at line 11 of file NetClientSocialModule.cs.


The documentation for this class was generated from the following file: