tModLoader v2024.10
A mod to make and play Terraria mods
NetServerSocialModule Class Reference

Inherits NetSocialModule, and NetSocialModule.

Public Member Functions

override void CancelJoin ()
 
override void CancelJoin ()
 
override bool CanInvite ()
 
override bool CanInvite ()
 
override void Close (RemoteAddress address)
 
override void Close (RemoteAddress address)
 
override void Connect (RemoteAddress address)
 
override void Connect (RemoteAddress address)
 
override ulong GetLobbyId ()
 
override ulong GetLobbyId ()
 
override void Initialize ()
 
override void Initialize ()
 
override void LaunchLocalServer (Process process, ServerMode mode)
 
override void LaunchLocalServer (Process process, ServerMode mode)
 
void OnConnected ()
 
void OnRailEvent (RAILEventID event_id, EventBase data)
 
override void OpenInviteInterface ()
 
override void OpenInviteInterface ()
 
override bool StartListening (SocketConnectionAccepted callback)
 
override bool StartListening (SocketConnectionAccepted callback)
 
override void StopListening ()
 
override void StopListening ()
 
- Public Member Functions inherited from NetSocialModule
abstract void CancelJoin ()
 
abstract bool CanInvite ()
 
abstract void Close (RemoteAddress address)
 
abstract void Connect (RemoteAddress address)
 
abstract ulong GetLobbyId ()
 
abstract void Initialize ()
 
override void Initialize ()
 
override void Initialize ()
 
abstract bool IsConnected (RemoteAddress address)
 
override bool IsConnected (RemoteAddress address)
 
override bool IsConnected (RemoteAddress address)
 
abstract bool IsDataAvailable (RemoteAddress address)
 
override bool IsDataAvailable (RemoteAddress address)
 
override 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)
 
override int Receive (RemoteAddress address, byte[] data, int offset, int length)
 
override int Receive (RemoteAddress address, byte[] data, int offset, int length)
 
abstract bool Send (RemoteAddress address, byte[] data, int length)
 
override bool Send (RemoteAddress address, byte[] data, int length)
 
override bool Send (RemoteAddress address, byte[] data, int length)
 
abstract void Shutdown ()
 
override void Shutdown ()
 
override void Shutdown ()
 
abstract bool StartListening (SocketConnectionAccepted callback)
 
abstract void StopListening ()
 
void Initialize ()
 
void Shutdown ()
 

Additional Inherited Members

- Public Types inherited from NetSocialModule
enum  ConnectionState {
  Inactive , Authenticating , Connected , Inactive ,
  Authenticating , Connected
}
 
enum  ConnectionState {
  Inactive , Authenticating , Connected , Inactive ,
  Authenticating , Connected
}
 
- Protected Member Functions inherited from NetSocialModule
 NetSocialModule (int readChannel, int writeChannel)
 
delegate void AsyncHandshake (CSteamID client)
 
RailID GetLocalPeer ()
 
P2PSessionState_t GetSessionState (CSteamID userId)
 
bool GetSessionState (RailID userId, RailNetworkSessionState state)
 
virtual void OnLobbyChatMessage (LobbyChatMsg_t result)
 
RailID RemoteAddressToRailId (RemoteAddress address)
 
CSteamID RemoteAddressToSteamId (RemoteAddress address)
 
- Protected Attributes inherited from NetSocialModule
ConcurrentDictionary< CSteamID, ConnectionState > _connectionStateMap = new ConcurrentDictionary<CSteamID, ConnectionState>()
 
ConcurrentDictionary< RailID, ConnectionState > _connectionStateMap = new ConcurrentDictionary<RailID, ConnectionState>()
 
Lobby _lobby = new Lobby()
 
SteamP2PReader _reader
 
WeGameP2PReader _reader
 
object _steamLock = new object()
 
SteamP2PWriter _writer
 
WeGameP2PWriter _writer
 
- Static Protected Attributes inherited from 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() [1/2]

override void NetServerSocialModule.CancelJoin ( )
virtual

Implements NetSocialModule.

◆ CancelJoin() [2/2]

override void NetServerSocialModule.CancelJoin ( )
virtual

Implements NetSocialModule.

◆ CanInvite() [1/2]

override bool NetServerSocialModule.CanInvite ( )
virtual

Implements NetSocialModule.

◆ CanInvite() [2/2]

override bool NetServerSocialModule.CanInvite ( )
virtual

Implements NetSocialModule.

◆ Close() [1/2]

override void NetServerSocialModule.Close ( RemoteAddress  address)
virtual

Implements NetSocialModule.

◆ Close() [2/2]

override void NetServerSocialModule.Close ( RemoteAddress  address)
virtual

Implements NetSocialModule.

◆ Connect() [1/2]

override void NetServerSocialModule.Connect ( RemoteAddress  address)
virtual

Implements NetSocialModule.

◆ Connect() [2/2]

override void NetServerSocialModule.Connect ( RemoteAddress  address)
virtual

Implements NetSocialModule.

◆ GetLobbyId() [1/2]

override ulong NetServerSocialModule.GetLobbyId ( )
virtual

Implements NetSocialModule.

◆ GetLobbyId() [2/2]

override ulong NetServerSocialModule.GetLobbyId ( )
virtual

Implements NetSocialModule.

◆ Initialize() [1/2]

override void NetServerSocialModule.Initialize ( )
virtual

Implements NetSocialModule.

◆ Initialize() [2/2]

override void NetServerSocialModule.Initialize ( )
virtual

Implements NetSocialModule.

◆ LaunchLocalServer() [1/2]

override void NetServerSocialModule.LaunchLocalServer ( Process  process,
ServerMode  mode 
)
virtual

Implements NetSocialModule.

◆ LaunchLocalServer() [2/2]

override void NetServerSocialModule.LaunchLocalServer ( Process  process,
ServerMode  mode 
)
virtual

Implements NetSocialModule.

◆ OpenInviteInterface() [1/2]

override void NetServerSocialModule.OpenInviteInterface ( )
virtual

Implements NetSocialModule.

◆ OpenInviteInterface() [2/2]

override void NetServerSocialModule.OpenInviteInterface ( )
virtual

Implements NetSocialModule.

◆ StartListening() [1/2]

override bool NetServerSocialModule.StartListening ( SocketConnectionAccepted  callback)
virtual

Implements NetSocialModule.

◆ StartListening() [2/2]

override bool NetServerSocialModule.StartListening ( SocketConnectionAccepted  callback)
virtual

Implements NetSocialModule.

◆ StopListening() [1/2]

override void NetServerSocialModule.StopListening ( )
virtual

Implements NetSocialModule.

◆ StopListening() [2/2]

override void NetServerSocialModule.StopListening ( )
virtual

Implements NetSocialModule.