Terraria v1.4.4.9
Terraria source code documentation
|
Public Types | |
enum | ConnectionState { Inactive , Authenticating , Connected } |
Public Member Functions | |
NetServerSocialModule () | |
override void | Initialize () |
override ulong | GetLobbyId () |
override void | OpenInviteInterface () |
override void | CancelJoin () |
override bool | CanInvite () |
override void | LaunchLocalServer (Process process, ServerMode mode) |
override bool | StartListening (SocketConnectionAccepted callback) |
override void | StopListening () |
override void | Connect (RemoteAddress address) |
override void | Close (RemoteAddress address) |
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 | BroadcastConnectedUsers () |
void | Close (CSteamID user) |
void | OnLobbyCreated (LobbyCreated_t result, bool failure) |
bool | OnPacketRead (byte[] data, int length, CSteamID userId) |
void | OnP2PSessionRequest (P2PSessionRequest_t result) |
Private Attributes | |
ServerMode | _mode |
Callback< P2PSessionRequest_t > | _p2pSessionRequest |
bool | _acceptingClients |
SocketConnectionAccepted | _connectionAcceptedCallback |
Callback< LobbyChatMsg_t > | _lobbyChatMessage |
Definition at line 12 of file NetServerSocialModule.cs.