UDPControlInfo

Namespace inet

UDPControlInfo

class

Base class for UDP control info classes. The most convenient way to handle UDP is the UDPSocket class, which hides control info from you.

sockId must uniquely identify the socket in the UDP module; the best way to achieve that is to obtain the value from UDPSocket::generateSocketId().

See also: UDPCommandCode

Extends

Name Type Description
cObject (unknown -- not in documented files)

Fields

Name Type Description
sockId int

must uniquely identify the socket in the UDP module

Source code

//
// Base class for UDP control info classes. The most convenient way to handle
// ~UDP is the UDPSocket class, which hides control info from you.
//
// sockId must uniquely identify the socket in the ~UDP module; the best way
// to achieve that is to obtain the value from UDPSocket::generateSocketId().
//
// @see ~UDPCommandCode
//
class UDPControlInfo extends cObject
{
    int sockId = -1;  // must uniquely identify the socket in the ~UDP module
}

File: src/inet/transportlayer/contract/udp/UDPControlInfo.msg