Terraria v1.4.4.9
Terraria source code documentation
|
Public Types | |
enum | ConnectionState { Inactive , Authenticating , Connected } |
Public Member Functions | |
NetServerSocialModule () | |
void | OnConnected () |
void | OnRailEvent (RAILEventID event_id, EventBase data) |
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 | |
RailID | GetLocalPeer () |
bool | GetSessionState (RailID userId, RailNetworkSessionState state) |
RailID | RemoteAddressToRailId (RemoteAddress address) |
Protected Attributes | |
Lobby | _lobby = new Lobby() |
WeGameP2PReader | _reader |
WeGameP2PWriter | _writer |
ConcurrentDictionary< RailID, ConnectionState > | _connectionStateMap = new ConcurrentDictionary<RailID, ConnectionState>() |
Static Protected Attributes | |
const int | LobbyMessageJoin = 1 |
static readonly byte[] | _handshake = new byte[10] { 10, 0, 93, 114, 101, 108, 111, 103, 105, 99 } |
Private Member Functions | |
void | BroadcastConnectedUsers () |
bool | AcceptAnUserSession (RailID local_peer, RailID remote_peer) |
void | TerminateRemotePlayerSession (RailID remote_id) |
bool | CloseNetWorkSession (RailID remote_peer) |
RailID | GetServerID () |
void | CloseAndUpdateUserState (RailID remote_peer) |
void | OnCreateSessionRequest (CreateSessionRequest data) |
void | OnCreateSessionFailed (CreateSessionFailed data) |
bool | GetRailFriendList (List< RailFriendInfo > list) |
void | OnWegameMessage (IPCMessage message) |
void | UpdateFriendList (WeGameFriendListInfo friendListInfo) |
bool | IsWeGameFriend (RailID id) |
string | DumpFriendListString (List< RailFriendInfo > list) |
bool | IsActiveUser (RailID user) |
void | UpdateUserStateBySessionAuthResult (GameServerStartSessionWithPlayerResponse data) |
bool | TryAuthUserByRecvData (RailID user, byte[] data, int length) |
bool | OnPacketRead (byte[] data, int size, RailID user) |
void | OnAuthSuccess (RailID remote_peer) |
void | OnLobbyCreated (RailID lobbyID) |
void | RegisterRailEvent () |
Private Attributes | |
SocketConnectionAccepted | _connectionAcceptedCallback |
bool | _acceptingClients |
ServerMode | _mode |
RailCallBackHelper | _callbackHelper = new RailCallBackHelper() |
MessageDispatcherClient | _client = new MessageDispatcherClient() |
bool | _serverConnected |
RailID | _serverID = new RailID() |
Action | _ipcConnetedAction |
List< RailFriendInfo > | _wegameFriendList |
Definition at line 12 of file NetServerSocialModule.cs.