tModLoader v2022.09
A mod to make and play Terraria mods
Terraria.Social.Steam.NetClientSocialModule Class Reference

Inherits Terraria.Social.Steam.NetSocialModule.

Public Member Functions

override void CancelJoin ()
override bool CanInvite ()
override void Close (RemoteAddress address)
override void Connect (RemoteAddress address)
void ConnectToLobby (ulong lobbyId)
override ulong GetLobbyId ()
override void Initialize ()
override void LaunchLocalServer (Process process, ServerMode mode)
override void OpenInviteInterface ()
override bool StartListening (SocketConnectionAccepted callback)
override void StopListening ()
- Public Member Functions inherited from Terraria.Social.Steam.NetSocialModule
override void Initialize ()
override bool IsConnected (RemoteAddress address)
override bool IsDataAvailable (RemoteAddress address)
override int Receive (RemoteAddress address, byte[] data, int offset, int length)
override bool Send (RemoteAddress address, byte[] data, int length)
override void Shutdown ()
abstract void CancelJoin ()
abstract bool CanInvite ()
abstract void Close (RemoteAddress address)
abstract void Connect (RemoteAddress address)
abstract ulong GetLobbyId ()
abstract void Initialize ()
abstract bool IsConnected (RemoteAddress address)
abstract bool IsDataAvailable (RemoteAddress address)
abstract void LaunchLocalServer (Process process, ServerMode mode)
abstract void OpenInviteInterface ()
abstract int Receive (RemoteAddress address, byte[] data, int offset, int length)
abstract bool Send (RemoteAddress address, byte[] data, int length)
abstract void Shutdown ()
abstract bool StartListening (SocketConnectionAccepted callback)
abstract void StopListening ()
void Initialize ()
void Shutdown ()

Additional Inherited Members

- Public Types inherited from Terraria.Social.Steam.NetSocialModule
enum  ConnectionState { Inactive , Authenticating , Connected }
- Protected Member Functions inherited from Terraria.Social.Steam.NetSocialModule
 NetSocialModule (int readChannel, int writeChannel)
delegate void AsyncHandshake (CSteamID client)
P2PSessionState_t GetSessionState (CSteamID userId)
virtual void OnLobbyChatMessage (LobbyChatMsg_t result)
CSteamID RemoteAddressToSteamId (RemoteAddress address)
- Protected Attributes inherited from Terraria.Social.Steam.NetSocialModule
ConcurrentDictionary< CSteamID, ConnectionState > _connectionStateMap = new ConcurrentDictionary<CSteamID, ConnectionState>()
Lobby _lobby = new Lobby()
SteamP2PReader _reader
object _steamLock = new object()
SteamP2PWriter _writer
- Static Protected Attributes inherited from Terraria.Social.Steam.NetSocialModule
static readonly byte[] _handshake
const int ClientReadChannel = 2
const ushort GamePort = 27005
const int LobbyMessageJoin = 1
const ushort QueryPort = 27007
const int ServerReadChannel = 1
const ushort SteamPort = 27006

Member Function Documentation

◆ CancelJoin()

override void Terraria.Social.Steam.NetClientSocialModule.CancelJoin ( )

◆ CanInvite()

override bool Terraria.Social.Steam.NetClientSocialModule.CanInvite ( )

◆ Close()

override void Terraria.Social.Steam.NetClientSocialModule.Close ( RemoteAddress  address)

◆ Connect()

override void Terraria.Social.Steam.NetClientSocialModule.Connect ( RemoteAddress  address)

◆ GetLobbyId()

override ulong Terraria.Social.Steam.NetClientSocialModule.GetLobbyId ( )

◆ Initialize()

override void Terraria.Social.Steam.NetClientSocialModule.Initialize ( )

◆ LaunchLocalServer()

override void Terraria.Social.Steam.NetClientSocialModule.LaunchLocalServer ( Process  process,
ServerMode  mode 

◆ OpenInviteInterface()

override void Terraria.Social.Steam.NetClientSocialModule.OpenInviteInterface ( )

◆ StartListening()

override bool Terraria.Social.Steam.NetClientSocialModule.StartListening ( SocketConnectionAccepted  callback)

◆ StopListening()

override void Terraria.Social.Steam.NetClientSocialModule.StopListening ( )