Repository navigation
Architecture
Luiz Filho edited this page May 7, 2026
·
1 revision
PangyaSharp replicates the multi-server infrastructure of Pangya JP. The system consists of 5 independent TCP servers plus a shared PangyaAPI library layer. All servers connect to a single SQL Server (MSSQL) database via ODBC.
[Pangya JP Client]
│
[LoginServer :10103] ──► Authenticates users, provides server list
│
[AuthServer :7777] ──► Validates session keys between servers (internal)
│
[GameServer :20201] ──► Core game logic: rooms, modes, inventory, events
│
[RankingServer :4774] ──► Player / character / guild rankings
│
[MessengerServer :30303] ──► Friends, online status, messaging
│
[SQL Server / MSSQL] ──► Single shared database (ODBC DSN "pangya")
Client LoginServer AuthServer GameServer
│ │ │ │
│── connect :10103 ────►│ │ │
│ │── validate DB ─────────────────► │
│◄── server list ───────│ │ │
│ │ │ │
│── connect :20201 ─────────────────────────────────────────► │
│ │ │◄── validate key ─│
│ │ │─── OK ──────────►│
│◄──────────────────────────────── enter channels & rooms ──────│
- Client connects to LoginServer (port 10103).
- LoginServer validates credentials in the database and generates a session key.
- LoginServer returns the list of available GameServers.
- Client connects directly to the chosen GameServer.
- GameServer validates the session key with AuthServer.
- Player enters channels and game rooms.
| File | Description |
|---|---|
PangyaSharp.sln |
Main solution — all projects |
Auth.sln |
Standalone AuthServer |
Game.sln |
Standalone GameServer |
Login.sln |
Standalone LoginServer |
Messenger.sln |
Standalone MessengerServer |
Rank.sln |
Standalone RankingServer |
| Server | TCP Port | GUID | Role |
|---|---|---|---|
| AuthServer | 7777 | 8888 | Internal key validation |
| LoginServer | 10103 | 10103 | Client entry point |
| GameServer | 20201 | 20201 | Core game logic |
| RankingServer | 4774 | 4774 | Leaderboards |
| MessengerServer | 30303 | 30303 | Friends & chat |
| SQL Server | 1433 | — | Database |
Next: Servers — detailed config for each server