Search Results for

    Show / Hide Table of Contents

    Enum SocketOptionName

    Defines socket option names for the Socket class.

    Namespace: System.Net.Sockets
    Assembly: System.Net.dll
    Syntax
    public enum SocketOptionName
    Remarks

    The SocketOptionName enumeration defines the name of each Socket configuration option. Sockets can be configured with the SetSocketOption(SocketOptionLevel, SocketOptionName, bool) method.

    Fields

    Name Description
    AcceptConnection

    Socket is listening.

    AddMembership

    Add an IP group membership.

    AddSourceMembership

    Join IP group/source.

    BlockSource

    Block IP group/source.

    Broadcast

    Permit sending broadcast messages on the socket.

    BsdUrgent

    Use urgent data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.

    ChecksumCoverage

    Set or get the UDP checksum coverage.

    Debug

    Record debugging information.

    DontFragment

    Don't fragment IP datagrams.

    DontLinger

    Close socket gracefully without lingering.

    DontRoute

    Do not route, send directly to interface addresses.

    DropMembership

    Drop an IP group membership.

    DropSourceMembership

    Leave IP group/source.

    Error

    Get error status and clear.

    ExclusiveAddressUse

    Enables a socket to be bound for exclusive access.

    Expedited

    Use expedited data as defined in RFC-1222. This option can be set only once; after it is set, it cannot be turned off.

    HeaderIncluded

    Header is included with data.

    HopLimit

    Specifies the maximum number of router hops for an Internet Protocol version 6 (IPv6) packet. This is similar to Time to Live (TTL) for Internet Protocol version 4.

    IPOptions

    IP options.

    IpTimeToLive

    IP time to live.

    KeepAlive

    Send keep-alives.

    Linger

    Linger on close if unsent data is present.

    MaxConnections

    Maximum queue length that can be specified by Listen(int).

    MulticastInterface

    IP multicast interface. - Additional comments by mbolien: multicast interface You provide it with an SOCKADDR_IN, and that tells the system that it should receive multicast messages on that interface (if you have more than one interface). Binding the socket is not sufficient, since if the Ethernet hardware isnt set up to grab the multicast packets, it wont do good to bind the socket. Kinda like raw sockets. Unless you put the Ethernet card in promiscuous mode, youll only get stuff sent to and from your machine.

    MulticastLoopback

    IP Multicast loopback.

    MulticastTimeToLive

    IP multicast time to live.

    NoChecksum

    Send UDP datagrams with checksum set to zero.

    NoDelay

    Disables the Nagle algorithm for send coalescing.

    OutOfBandInline

    Receives out-of-band data in the normal data stream.

    PacketInformation

    Receive packet information for ipv4.

    ReceiveBuffer

    Send low water mark.

    ReceiveLowWater

    Receive low water mark.

    ReceiveTimeout

    Receive timeout.

    ReuseAddress

    Allows the socket to be bound to an address that is already in use.

    SendBuffer

    Specifies the total per-socket buffer space reserved for sends. This is unrelated to the maximum message size or the size of a TCP window.

    SendLowWater

    Specifies the total per-socket buffer space reserved for receives. This is unrelated to the maximum message size or the size of a TCP window.

    SendTimeout

    Send timeout.

    Type

    Get socket type.

    TypeOfService

    IP type of service and preced.

    UnblockSource

    Unblock IP group/source.

    UpdateAcceptContext

    Updates an accepted socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_ACCEPT_CONTEXT socket option and is supported only on connection-oriented sockets.

    UpdateConnectContext

    Updates a connected socket's properties by using those of an existing socket. This is equivalent to using the Winsock2 SO_UPDATE_CONNECT_CONTEXT socket option and is supported only on connection-oriented sockets.

    UseLoopback

    Bypass hardware when possible.

    In This Article
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX