Skip to content

server class creation #3

Description

@ARaveala

Creation of a server class.
A server class instance will be used to manage the server , class allows for encapsulation ...

things to add to server class

  • constructor (default)
  • deconstructor (with delete?)
  • ip or hostname server is bound too
  • port (once validated)
  • socket_id/fd
  • map /vector for an array of client classes (empty to begin with)
  • map of channels

methods

  • receive message (read raw data , break it down)
  • validate received message ( permissions and client exists, ect)
  • redirect message(????)
  • reformat message
  • broadcast message to all (it can still broadcast even if there is no channel, just send to all clients active for example,
    maybe only admin?)
  • broadcast to channel
  • send private message
  • accept new cllient
  • epoll() event managemrent (or do we choose to handle this as a utility function)
  • remove client
  • create channel
  • remove channel
  • find client (nickname, fullname , fd)
  • find channel by name
  • connection management

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions