Show / Hide Table of Contents

Class MessageAnnouncement

A network message to announce the server.

Inheritance
System.Object
MessageAnnouncement
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: IMLD.MixedRealityAnalysis.Network.Messages
Assembly: Assembly-CSharp.dll
Syntax
public class MessageAnnouncement

Constructors

MessageAnnouncement(String, String, String, Int32)

Initializes a new instance of the MessageAnnouncement class.

Declaration
public MessageAnnouncement(string broadcastmessage, string ip, string name, int port)
Parameters
Type Name Description
System.String broadcastmessage

The message to broadcast.

System.String ip

The ip that the server accepts connections on.

System.String name

The name of the server.

System.Int32 port

The port that the server accepts connections on.

Fields

IP

Declaration
public string IP
Field Value
Type Description
System.String

Message

Declaration
public string Message
Field Value
Type Description
System.String

Name

Declaration
public string Name
Field Value
Type Description
System.String

Port

Declaration
public int Port
Field Value
Type Description
System.Int32

Type

Declaration
public static MessageContainer.MessageType Type
Field Value
Type Description
MessageContainer.MessageType

Methods

Pack()

Packs this MessageAnnouncement into a MessageContainer.

Declaration
public MessageContainer Pack()
Returns
Type Description
MessageContainer

The packed message.

Unpack(MessageContainer)

Unpacks a MessageContainer of the type MessageAnnouncement.

Declaration
public static MessageAnnouncement Unpack(MessageContainer container)
Parameters
Type Name Description
MessageContainer container

The container of the message.

Returns
Type Description
MessageAnnouncement

The unpacked message.

In This Article
Back to top Generated by DocFX