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 MessageAnnouncementConstructors
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 IPField Value
| Type | Description | 
|---|---|
| System.String | 
Message
Declaration
public string MessageField Value
| Type | Description | 
|---|---|
| System.String | 
Name
Declaration
public string NameField Value
| Type | Description | 
|---|---|
| System.String | 
Port
Declaration
public int PortField Value
| Type | Description | 
|---|---|
| System.Int32 | 
Type
Declaration
public static MessageContainer.MessageType TypeField 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. |