CustomAdvertisement typedef

Packet CustomAdvertisement (
  1. int socketPort
)

This is used to create a custom advertisement message.

socketPort is the port which the Server is listening. If you pass a serverSocketPort to Server, socketPort will be the same value else it will be the one assigned by the operating system.

This should return a Packet which will be sent out as the advertisement to all the Clients.

Implementation

typedef CustomAdvertisement = Packet Function(int socketPort);