







![]() ![]() ![]() |
Lidgren Network Library documentation |
NetIncomingMessage Members |
NetIncomingMessage Class Methods Properties See Also Send Feedback |
The NetIncomingMessage type exposes the following members.
Methods
Name | Description | |
---|---|---|
![]() | Decrypt |
Decrypt a message
|
![]() | EnsureBufferSize |
Ensures the buffer can hold this number of bits
(Inherited from NetBuffer.) |
![]() | Equals | (Inherited from Object.) |
![]() | Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) |
![]() | GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() | GetType |
Gets the Type of the current instance.
(Inherited from Object.) |
![]() | MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) |
![]() | PeekBoolean |
Reads a 1-bit Boolean without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekByte()()()() |
Reads a Byte without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekByte(Int32) |
Reads the specified number of bits into a Byte without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekBytes(Int32) |
Reads the specified number of bytes without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekBytes(array<Byte>[]()[][], Int32, Int32) |
Reads the specified number of bytes without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekDataBuffer |
Gets the internal data buffer
(Inherited from NetBuffer.) |
![]() | PeekDouble |
Reads a 64-bit Double without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekFloat |
Reads a 32-bit Single without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekInt16 |
Reads an Int16 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekInt32()()()() |
Reads an Int32 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekInt32(Int32) |
Reads the specified number of bits into an Int32 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekInt64()()()() |
Reads an Int64 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekInt64(Int32) |
Reads the specified number of bits into an Int64 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekSByte |
Reads an SByte without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekSingle |
Reads a 32-bit Single without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekString |
Reads a string without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekUInt16 |
Reads a UInt16 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekUInt32()()()() |
Reads a UInt32 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekUInt32(Int32) |
Reads the specified number of bits into a UInt32 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekUInt64()()()() |
Reads a UInt64 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | PeekUInt64(Int32) |
Reads the specified number of bits into an UInt64 without advancing the read pointer
(Inherited from NetBuffer.) |
![]() | ReadAllFields(Object) |
Reads all public and private declared instance fields of the object in alphabetical order using reflection
(Inherited from NetBuffer.) |
![]() | ReadAllFields(Object, BindingFlags) |
Reads all fields with the specified binding of the object in alphabetical order using reflection
(Inherited from NetBuffer.) |
![]() | ReadAllProperties(Object) |
Reads all public and private declared instance fields of the object in alphabetical order using reflection
(Inherited from NetBuffer.) |
![]() | ReadAllProperties(Object, BindingFlags) |
Reads all fields with the specified binding of the object in alphabetical order using reflection
(Inherited from NetBuffer.) |
![]() | ReadBits |
Reads the specified number of bits into a preallocated array
(Inherited from NetBuffer.) |
![]() | ReadBoolean |
Reads a boolean value (stored as a single bit) written using Write(bool)
(Inherited from NetBuffer.) |
![]() | ReadByte()()()() |
Reads a byte
(Inherited from NetBuffer.) |
![]() | ReadByte(Byte%) |
Reads a byte and returns true or false for success
(Inherited from NetBuffer.) |
![]() | ReadByte(Int32) |
Reads 1 to 8 bits into a byte
(Inherited from NetBuffer.) |
![]() | ReadBytes(Int32) |
Reads the specified number of bytes
(Inherited from NetBuffer.) |
![]() | ReadBytes(Int32, array<Byte>[]()[][]%) |
Reads the specified number of bytes and returns true for success
(Inherited from NetBuffer.) |
![]() | ReadBytes(array<Byte>[]()[][], Int32, Int32) |
Reads the specified number of bytes into a preallocated array
(Inherited from NetBuffer.) |
![]() | ReadDouble |
Reads a 64 bit floating point value written using Write(Double)
(Inherited from NetBuffer.) |
![]() | ReadFloat |
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.) |
![]() | ReadInt16 |
Reads a 16 bit signed integer written using Write(Int16)
(Inherited from NetBuffer.) |
![]() | ReadInt32()()()() |
Reads a 32 bit signed integer written using Write(Int32)
(Inherited from NetBuffer.) |
![]() | ReadInt32(Int32) |
Reads a signed integer stored in 1 to 32 bits, written using Write(Int32, Int32)
(Inherited from NetBuffer.) |
![]() | ReadInt32(Int32%) |
Reads a 32 bit signed integer written using Write(Int32)
(Inherited from NetBuffer.) |
![]() | ReadInt64()()()() |
Reads a 64 bit signed integer written using Write(Int64)
(Inherited from NetBuffer.) |
![]() | ReadInt64(Int32) |
Reads a signed integer stored in 1 to 64 bits, written using Write(Int64, Int32)
(Inherited from NetBuffer.) |
![]() | ReadIPEndpoint |
Reads a stored IPv4 endpoint description
(Inherited from NetBuffer.) |
![]() | ReadPadBits |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.) |
![]() | ReadRangedInteger |
Reads a 32 bit integer value written using WriteRangedInteger()
(Inherited from NetBuffer.) |
![]() | ReadRangedSingle |
Reads a 32 bit floating point value written using WriteRangedSingle()
(Inherited from NetBuffer.) |
![]() | ReadSByte |
Reads a signed byte
(Inherited from NetBuffer.) |
![]() | ReadSignedSingle |
Reads a 32 bit floating point value written using WriteSignedSingle()
(Inherited from NetBuffer.) |
![]() | ReadSingle()()()() |
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.) |
![]() | ReadSingle(Single%) |
Reads a 32 bit floating point value written using Write(Single)
(Inherited from NetBuffer.) |
![]() | ReadString()()()() |
Reads a string written using Write(string)
(Inherited from NetBuffer.) |
![]() | ReadString(String%) |
Reads a string written using Write(string) and returns true for success
(Inherited from NetBuffer.) |
![]() | ReadTime(Boolean) |
Reads a value, in local time comparable to NetTime.Now, written using WriteTime()
Must have a connected sender
|
![]() | ReadTime(NetConnection, Boolean) |
Reads a value, in local time comparable to NetTime.Now, written using WriteTime() for the connection supplied
(Inherited from NetBuffer.) |
![]() | ReadUInt16 |
Reads a 16 bit unsigned integer written using Write(UInt16)
(Inherited from NetBuffer.) |
![]() | ReadUInt32()()()() |
Reads an 32 bit unsigned integer written using Write(UInt32)
(Inherited from NetBuffer.) |
![]() | ReadUInt32(Int32) |
Reads an unsigned integer stored in 1 to 32 bits, written using Write(UInt32, Int32)
(Inherited from NetBuffer.) |
![]() | ReadUInt32(UInt32%) |
Reads an 32 bit unsigned integer written using Write(UInt32) and returns true for success
(Inherited from NetBuffer.) |
![]() | ReadUInt64()()()() |
Reads a 64 bit unsigned integer written using Write(UInt64)
(Inherited from NetBuffer.) |
![]() | ReadUInt64(Int32) |
Reads an unsigned integer stored in 1 to 64 bits, written using Write(UInt64, Int32)
(Inherited from NetBuffer.) |
![]() | ReadUnitSingle |
Reads a 32 bit floating point value written using WriteUnitSingle()
(Inherited from NetBuffer.) |
![]() | ReadVariableInt32 |
Reads a variable sized Int32 written using WriteVariableInt32()
(Inherited from NetBuffer.) |
![]() | ReadVariableInt64 |
Reads a variable sized Int64 written using WriteVariableInt64()
(Inherited from NetBuffer.) |
![]() | ReadVariableUInt32()()()() |
Reads a variable sized UInt32 written using WriteVariableUInt32()
(Inherited from NetBuffer.) |
![]() | ReadVariableUInt32(UInt32%) |
Reads a variable sized UInt32 written using WriteVariableUInt32() and returns true for success
(Inherited from NetBuffer.) |
![]() | ReadVariableUInt64 |
Reads a variable sized UInt32 written using WriteVariableInt64()
(Inherited from NetBuffer.) |
![]() | SkipPadBits()()()() |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.) |
![]() | SkipPadBits(Int32) |
Pads data with the specified number of bits.
(Inherited from NetBuffer.) |
![]() | ToString |
Returns a string that represents this object
(Overrides Object..::..ToString()()()().) |
![]() | Write(Boolean) |
Writes a boolean value using 1 bit
(Inherited from NetBuffer.) |
![]() | Write(Byte) |
Write a byte
(Inherited from NetBuffer.) |
![]() | Write(array<Byte>[]()[][]) |
Writes all bytes in an array
(Inherited from NetBuffer.) |
![]() | Write(Double) |
Writes a 64 bit floating point value
(Inherited from NetBuffer.) |
![]() | Write(Int16) |
Writes a signed 16 bit integer
(Inherited from NetBuffer.) |
![]() | Write(Int32) |
Writes a 32 bit signed integer
(Inherited from NetBuffer.) |
![]() | Write(Int64) |
Writes a 64 bit signed integer
(Inherited from NetBuffer.) |
![]() | Write(IPEndPoint) |
Writes an endpoint description
(Inherited from NetBuffer.) |
![]() | Write(SByte) |
Writes a signed byte
(Inherited from NetBuffer.) |
![]() | Write(Single) |
Writes a 32 bit floating point value
(Inherited from NetBuffer.) |
![]() | Write(String) |
Write a string
(Inherited from NetBuffer.) |
![]() | Write(UInt16) |
Writes an unsigned 16 bit integer
(Inherited from NetBuffer.) |
![]() | Write(UInt32) |
Writes a 32 bit unsigned integer
(Inherited from NetBuffer.) |
![]() | Write(UInt64) |
Writes a 64 bit unsigned integer
(Inherited from NetBuffer.) |
![]() | Write(NetIncomingMessage) |
Append all the bits of message to this message
(Inherited from NetBuffer.) |
![]() | Write(NetOutgoingMessage) |
Append all the bits of message to this message
(Inherited from NetBuffer.) |
![]() | Write(Byte, Int32) |
Writes 1 to 8 bits of a byte
(Inherited from NetBuffer.) |
![]() | Write(Int32, Int32) |
Writes a signed integer using 1 to 32 bits
(Inherited from NetBuffer.) |
![]() | Write(Int64, Int32) |
Writes a signed integer using 1 to 64 bits
(Inherited from NetBuffer.) |
![]() | Write(UInt16, Int32) |
Writes an unsigned integer using 1 to 16 bits
(Inherited from NetBuffer.) |
![]() | Write(UInt32, Int32) |
Writes a 32 bit signed integer
(Inherited from NetBuffer.) |
![]() | Write(UInt64, Int32) |
Writes an unsigned integer using 1 to 64 bits
(Inherited from NetBuffer.) |
![]() | Write(array<Byte>[]()[][], Int32, Int32) |
Writes the specified number of bytes from an array
(Inherited from NetBuffer.) |
![]() | WriteAllFields(Object) |
Writes all public and private declared instance fields of the object in alphabetical order using reflection
(Inherited from NetBuffer.) |
![]() | WriteAllFields(Object, BindingFlags) |
Writes all fields with specified binding in alphabetical order using reflection
(Inherited from NetBuffer.) |
![]() | WriteAllProperties(Object) |
Writes all public and private declared instance properties of the object in alphabetical order using reflection
(Inherited from NetBuffer.) |
![]() | WriteAllProperties(Object, BindingFlags) |
Writes all properties with specified binding in alphabetical order using reflection
(Inherited from NetBuffer.) |
![]() | WritePadBits()()()() |
Pads data with enough bits to reach a full byte. Decreases cpu usage for subsequent byte writes.
(Inherited from NetBuffer.) |
![]() | WritePadBits(Int32) |
Pads data with the specified number of bits.
(Inherited from NetBuffer.) |
![]() | WriteRangedInteger |
Writes an integer with the least amount of bits need for the specified range
Returns number of bits written
(Inherited from NetBuffer.) |
![]() | WriteRangedSingle |
Compress a float within a specified range using a certain number of bits
(Inherited from NetBuffer.) |
![]() | WriteSignedSingle |
Compress (lossy) a float in the range -1..1 using numberOfBits bits
(Inherited from NetBuffer.) |
![]() | WriteTime(Boolean) |
Writes the current local time to a message; readable (and convertable to local time) by the remote host using ReadTime()
(Inherited from NetBuffer.) |
![]() | WriteTime(Double, Boolean) |
Writes a local timestamp to a message; readable (and convertable to local time) by the remote host using ReadTime()
(Inherited from NetBuffer.) |
![]() | WriteUnitSingle |
Compress (lossy) a float in the range 0..1 using numberOfBits bits
(Inherited from NetBuffer.) |
![]() | WriteVariableInt32 |
Write Base128 encoded variable sized signed integer of up to 32 bits
(Inherited from NetBuffer.) |
![]() | WriteVariableInt64 |
Write Base128 encoded variable sized signed integer of up to 64 bits
(Inherited from NetBuffer.) |
![]() | WriteVariableUInt32 |
Write Base128 encoded variable sized unsigned integer of up to 32 bits
(Inherited from NetBuffer.) |
![]() | WriteVariableUInt64 |
Write Base128 encoded variable sized unsigned integer of up to 64 bits
(Inherited from NetBuffer.) |
Properties
Name | Description | |
---|---|---|
![]() | Data |
Gets or sets the internal data buffer
(Inherited from NetBuffer.) |
![]() | DeliveryMethod |
Gets the delivery method this message was sent with (if user data)
|
![]() | LengthBits |
Gets or sets the length of the used portion of the buffer in bits
(Inherited from NetBuffer.) |
![]() | LengthBytes |
Gets or sets the length of the used portion of the buffer in bytes
(Inherited from NetBuffer.) |
![]() | MessageType |
Gets the type of this incoming message
|
![]() | Position |
Gets or sets the read position in the buffer, in bits (not bytes)
(Inherited from NetBuffer.) |
![]() | PositionInBytes |
Gets the position in the buffer in bytes; note that the bits of the first returned byte may already have been read - check the Position property to make sure.
(Inherited from NetBuffer.) |
![]() | ReceiveTime |
What local time the message was received from the network
|
![]() | SenderConnection |
NetConnection of sender, if any
|
![]() | SenderEndpoint |
IPEndPoint of sender, if any
|
![]() | SequenceChannel |
Gets the sequence channel this message was sent with (if user data)
|