Kōtuku
  • Gallery
  • API
  • Wiki
  • GitHub
    • Audio
    • Config
    • Core
    • Display
    • Document
    • Font
    • HTTP
    • Network
    • Regex
    • SVG
    • Tiri
    • Vector
    • XML
    • XQuery
    • XRandR
      • Audio
      • MP3
      • Sound
      • File
      • MetaClass
      • Module
      • StorageDevice
      • Task
      • Thread
      • Time
      • Compression
      • CompressedStream
      • Config
      • LZMAStream
      • Script
      • Tiri
      • XML
      • XQuery
      • Controller
      • BlurFX
      • ColourFX
      • CompositeFX
      • ConvolveFX
      • DisplacementFX
      • FilterEffect
      • FloodFX
      • ImageFX
      • LightingFX
      • MergeFX
      • MorphologyFX
      • OffsetFX
      • RemapFX
      • SourceFX
      • TurbulenceFX
      • WaveFunctionFX
      • Scintilla
      • Bitmap
      • Clipboard
      • Display
      • Document
      • Font
      • Image
      • Pointer
      • Surface
      • SVG
      • ClientSocket
      • HTTP
      • NetClient
      • NetLookup
      • NetServer
      • NetSocket
      • Proxy
      • Gradient
      • GradientConic
      • GradientContour
      • GradientDiamond
      • GradientDiffusion
      • GradientDistal
      • GradientGouraud
      • GradientLinear
      • GradientMesh
      • GradientRadial
      • GradientVoronoi
      • Vector
      • VectorClip
      • VectorColour
      • VectorEllipse
      • VectorFilter
      • VectorGradient
      • VectorGroup
      • VectorImage
      • VectorPath
      • VectorPattern
      • VectorPolygon
      • VectorRectangle
      • VectorScene
      • VectorShape
      • VectorSpiral
      • VectorText
      • VectorTransition
      • VectorViewport
      • VectorWave
      • Linux Builds
      • Windows Builds
      • Customising Your Build
      • Kōtuku Objects
      • Kōtuku In Depth
      • Kōtuku Design Patterns
      • Coding With AI
      • Regex Manual
      • XML Comparisons
      • Tiri Reference Manual
      • Config API
      • Defer Syntax
      • GUI API
      • HTTP Server API
      • I/O API
      • JSON API
      • OAuth API
      • Options API
      • Proxy Server API
      • Tempus API
      • URL API
      • VFX API
      • Widgets
      • RIPL Reference Manual
      • Origo
      • Flute / Unit Testing
      • Tuku
      • Embedded Document Format
      • TDL Reference Manual
      • TDL Tools
      • Action Reference Manual
      • System Error Codes

NetClient Class

Represents a single client IP address.

When a connection is opened between a client IP and a NetServer object, a new NetClient object will be created for the client's IP address if one does not already exist. All ClientSocket connections to that IP address are then tracked under the single NetClient object.

NetClient objects are intended to be created from the network interfacing code exclusively.

Structure

The NetClient class consists of the following fields:

Access
NameTypeComment
 ClientDataAPTRA custom pointer available for userspace.
 Connections*ClientSocketPointer to the first established socket connection for the client IP.
 IPstruct IPAddress *The IP address of the client.
 Next*NetClientThe next client IP with connections to the NetServer.
 Prev*NetClientThe previous client IP with connections to the NetServer.
 TotalConnectionsINTThe total number of current socket connections for the IP address.
NetClient class documentation © Paul Manias © 2005-2026

IPADDR Type

Address types for the IPAddress structure.

NameDescription
IPADDR::V4
IPADDR::V6
NetClient module documentation © Paul Manias © 2005-2026

IPAddress Structure

FieldTypeDescription
DataINT128-bit array for supporting both V4 (32-bit host order) and V6 (8-bit byte order) IP addresses.
TypeIPADDRIdentifies the address Data value as a V4 or V6 address type.
PortINTFor UDP packets, identifies the client port number in host byte order.
NetClient class documentation © Paul Manias © 2005-2026