eolib-cpp 0.1.0-beta.7
Core C++ library for writing Endless Online applications
Loading...
Searching...
No Matches
eolib::protocol::net Namespace Reference

Types shared by client and server packets. More...

Namespaces

namespace  client
 Packets sent by the client, and the structs and enums they use.
namespace  server
 Packets sent by the server, and the structs and enums they use.

Classes

class  CharItem
 An item reference with a 1-byte amount. Used for craft ingredients. More...
class  Item
 An item reference with a 4-byte amount. More...
class  Packet
 An object representing a packet in the EO network protocol. More...
class  Spell
 A spell known by the player. More...
class  ThreeItem
 An item reference with a 3-byte amount. Used for shops, lockers, and various item transfers. More...
class  Version
 Client version. More...
class  Weight
 Current carry weight and maximum carry capacity of a player. More...

Enumerations

enum class  PacketFamily : int {
  Connection = 1 , Account = 2 , Character = 3 , Login = 4 ,
  Welcome = 5 , Walk = 6 , Face = 7 , Chair = 8 ,
  Emote = 9 , Attack = 11 , Spell = 12 , Shop = 13 ,
  Item = 14 , StatSkill = 16 , Global = 17 , Talk = 18 ,
  Warp = 19 , Jukebox = 21 , Players = 22 , Avatar = 23 ,
  Party = 24 , Refresh = 25 , Npc = 26 , PlayerRange = 27 ,
  NpcRange = 28 , Range = 29 , Paperdoll = 30 , Effect = 31 ,
  Trade = 32 , Chest = 33 , Door = 34 , Message = 35 ,
  Bank = 36 , Locker = 37 , Barber = 38 , Guild = 39 ,
  Music = 40 , Sit = 41 , Recover = 42 , Board = 43 ,
  Cast = 44 , Arena = 45 , Priest = 46 , Marriage = 47 ,
  AdminInteract = 48 , Citizen = 49 , Quest = 50 , Book = 51 ,
  Error = 250 , Init = 255
}
 The type of operation that a packet performs. Part of the unique packet ID. More...
enum class  PacketAction : int {
  Request = 1 , Accept = 2 , Reply = 3 , Remove = 4 ,
  Agree = 5 , Create = 6 , Add = 7 , Player = 8 ,
  Take = 9 , Use = 10 , Buy = 11 , Sell = 12 ,
  Open = 13 , Close = 14 , Msg = 15 , Spec = 16 ,
  Admin = 17 , List = 18 , Tell = 20 , Report = 21 ,
  Announce = 22 , Server = 23 , Drop = 24 , Junk = 25 ,
  Obtain = 26 , Get = 27 , Kick = 28 , Rank = 29 ,
  TargetSelf = 30 , TargetOther = 31 , TargetGroup = 33 , Dialog = 34 ,
  Ping = 240 , Pong = 241 , Net242 = 242 , Net243 = 243 ,
  Net244 = 244 , Error = 250 , Init = 255
}
 The specific action that a packet performs. Part of the unique packet ID. More...
enum class  QuestPage : int { Progress = 1 , History = 2 }
 A page in the Quest menu. More...
enum class  PartyRequestType : int { Join = 0 , Invite = 1 }
 Whether a player is requesting to join a party, or inviting someone to join theirs. More...

Functions

std::string ToString (PacketFamily value)
 Gets the name of a PacketFamily value.
std::ostream & operator<< (std::ostream &stream, PacketFamily value)
 Writes the name of a PacketFamily value to a stream.
std::string ToString (PacketAction value)
 Gets the name of a PacketAction value.
std::ostream & operator<< (std::ostream &stream, PacketAction value)
 Writes the name of a PacketAction value to a stream.
std::string ToString (QuestPage value)
 Gets the name of a QuestPage value.
std::ostream & operator<< (std::ostream &stream, QuestPage value)
 Writes the name of a QuestPage value to a stream.
std::string ToString (PartyRequestType value)
 Gets the name of a PartyRequestType value.
std::ostream & operator<< (std::ostream &stream, PartyRequestType value)
 Writes the name of a PartyRequestType value to a stream.

Detailed Description

Types shared by client and server packets.

Holds the eolib::protocol::net::Packet interface, the eolib::protocol::net::PacketFamily and eolib::protocol::net::PacketAction enums that identify a packet, and the structs and enums used by both client and server packets.

Enumeration Type Documentation

◆ PacketFamily

enum class eolib::protocol::net::PacketFamily : int
strong

The type of operation that a packet performs. Part of the unique packet ID.

Enumerator
Connection 
Account 
Character 
Login 
Welcome 
Walk 
Face 
Chair 
Emote 
Attack 
Spell 
Shop 
Item 
StatSkill 
Global 
Talk 
Warp 
Jukebox 
Players 
Avatar 
Party 
Refresh 
Npc 
PlayerRange 
NpcRange 
Range 
Paperdoll 
Effect 
Trade 
Chest 
Door 
Message 
Bank 
Locker 
Barber 
Guild 
Music 
Sit 
Recover 
Board 
Cast 
Arena 
Priest 
Marriage 
AdminInteract 
Citizen 
Quest 
Book 
Error 
Init 

◆ PacketAction

enum class eolib::protocol::net::PacketAction : int
strong

The specific action that a packet performs. Part of the unique packet ID.

Enumerator
Request 
Accept 
Reply 
Remove 
Agree 
Create 
Add 
Player 
Take 
Use 
Buy 
Sell 
Open 
Close 
Msg 
Spec 
Admin 
List 
Tell 
Report 
Announce 
Server 
Drop 
Junk 
Obtain 
Get 
Kick 
Rank 
TargetSelf 
TargetOther 
TargetGroup 
Dialog 
Ping 
Pong 
Net242 
Net243 
Net244 
Error 
Init 

◆ QuestPage

enum class eolib::protocol::net::QuestPage : int
strong

A page in the Quest menu.

Enumerator
Progress 
History 

◆ PartyRequestType

enum class eolib::protocol::net::PartyRequestType : int
strong

Whether a player is requesting to join a party, or inviting someone to join theirs.

Enumerator
Join 
Invite 

Function Documentation

◆ ToString() [1/4]

std::string eolib::protocol::net::ToString ( PacketFamily value)

Gets the name of a PacketFamily value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [1/4]

std::ostream & eolib::protocol::net::operator<< ( std::ostream & stream,
PacketFamily value )

Writes the name of a PacketFamily value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(PacketFamily)

◆ ToString() [2/4]

std::string eolib::protocol::net::ToString ( PacketAction value)

Gets the name of a PacketAction value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [2/4]

std::ostream & eolib::protocol::net::operator<< ( std::ostream & stream,
PacketAction value )

Writes the name of a PacketAction value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(PacketAction)

◆ ToString() [3/4]

std::string eolib::protocol::net::ToString ( QuestPage value)

Gets the name of a QuestPage value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [3/4]

std::ostream & eolib::protocol::net::operator<< ( std::ostream & stream,
QuestPage value )

Writes the name of a QuestPage value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(QuestPage)

◆ ToString() [4/4]

std::string eolib::protocol::net::ToString ( PartyRequestType value)

Gets the name of a PartyRequestType value.

Parameters
valuethe value to get the name of.
Returns
the name of the value, or "Unrecognized(N)" for unrecognized values.

◆ operator<<() [4/4]

std::ostream & eolib::protocol::net::operator<< ( std::ostream & stream,
PartyRequestType value )

Writes the name of a PartyRequestType value to a stream.

Parameters
streamthe stream to write to.
valuethe value to write the name of.
Returns
the stream.
See also
ToString(PartyRequestType)