util.Channels.readNetInt32

Reads next four bytes from a base.Channel as a 32 bit integer, in network byte order.

Syntax

Important:

This feature is experimental, the syntax/name and semantics/behavior may change in a future version.

util.Channels.readNetInt32(
     in base.Channel )
RETURNS INTEGER
  1. in is the channel to read from.
  2. Returns the 32 bit integer.

Usage

The util.Channels.readNetInt16() reads four bytes as a 32 bit integer, using the network byte order convention, from a base.Channel object.