|
| | DtDisSocket (const DtInetEndpoint &dest, DtU16 localPort=0, DtInetDevice *hostIf=NULL, DtU32 flags=DtDefaultSockOpts, bool immediateOpen=true, bool suppressSelfReflectEnabled=false) |
| | DIS Socket Constructor. More...
|
| |
| virtual | ~DtDisSocket () |
| | Destructor. More...
|
| |
| virtual bool | openSocket () |
| | Enable sending and receiving of packets. More...
|
| |
| virtual bool | closeSocket () |
| | Close a socket. More...
|
| |
| virtual DtInetSockRcvStatus | recvFrom (caddr_t buff, size_t buffSize, DtInetEndpoint &src, DtU32 flags=0) |
| | Receive method override The DtInetUdpSocket base class revcFrom() method does not perform unbundling, PDU filtering, or self-reflect suppression. More...
|
| |
| virtual bool | addDestination (const DtInetEndpoint &destination) |
| | Add an additional destination. More...
|
| |
| virtual void | removeDestination (const DtInetEndpoint &destination) |
| | Remove a destination. More...
|
| |
| virtual DtPduFilterTest * | exerciseId () |
| | DIS PDU filtering extension interface. More...
|
| |
| virtual DtPduFilterTest * | protocolVersion () |
| |
| virtual DtPduFilterTest * | pduKind () |
| |
| virtual DtPduFilterTest * | ipAddr () |
| |
| virtual DtInetEndpoint & | localSenderEndpoint () const |
| | Return the endpoint of the sender. More...
|
| |
| virtual DtInetSockFlushStatus | flush () |
| | Flush bundles. This method is called to flush all queued bundles. More...
|
| |
| virtual int | suppressSelfReflect (int size, DtInetBufferChain &buffChain, DtInetEndpoint &ep, int *status) |
| | Supress self-reflection method. More...
|
| |
| virtual int | filterExercisePdus (int size, DtInetBufferChain &buffChain, DtInetEndpoint &ep, int *status) |
| | Filter out PDUs which match the parameters configured in the DtPduFilterTests. More...
|
| |
| virtual int | minSizeFilter (int size, DtInetBufferChain &buffChain, DtInetEndpoint &ep, int *status) |
| | Filter PDUs that are smaller than size of DIS PDU header. More...
|
| |
| virtual void | setAttributePduStrategy (DtAttributePduStrategy strat) |
| | Sets/Gets whether to parse for coupled attribute PDU. More...
|
| |
| virtual DtAttributePduStrategy | attributePduStrategy () const |
| |
|
The base class send methods are overridden to provide the optional capability to bundle/unbundle and to filter self-reflects by sending PDUs from a different socket on an ephemeral port
|
| virtual int | send (caddr_t packet, size_t size, DtU32 flags=0) |
| | Sends only to the given destination. More...
|
| |
| virtual int | sendTo (caddr_t packet, size_t size, DtInetEndpoint &dest, DtU32 flags=0) |
| | Sends only to the given destination. More...
|
| |
| virtual int | sendChain (DtInetBufferChain &packets, DtU32 flags=0) |
| | Sends only to the given destination. More...
|
| |
| virtual int | sendChainTo (DtInetBufferChain &packets, DtInetEndpoint &dest, DtU32 flags=0) |
| | Sends only to the given destination. More...
|
| |
|
These methods are overridden to set the option on the send socket in addition to setting it on the main socket.
|
| virtual bool | setNonBlockingOption (bool onOrOff) |
| |
| virtual bool | setSendBufferSize (DtU32 size) |
| |
| virtual bool | setReceiveBufferSize (DtU32 size) |
| |
| virtual bool | setBroadcastOption (bool onOrOff) |
| |
| virtual bool | setReuseAddressOption (bool onOrOff) |
| |
| virtual bool | setDoNotRouteOption (bool onOrOff) |
| |
| virtual bool | setSendLowWatermark (DtU32 size) |
| |
| virtual bool | setReceiveLowWatermark (DtU32 size) |
| |
| virtual bool | setSendMcastDevice (const DtInetAddr &devAddr) |
| |
| virtual bool | setMcastTtlOption (DtU32 ttl) |
| | Change the default time-to-live on outbound multicast packets sent from this socket. More...
|
| |
|
Join / drop subscription to multicast group.
Socket will join group identified by the multicast address in grpAddr or grpEndpoint. If an object is passed in the port value of the endpoint will be ignored and the socket will join from the same port the socket's local endpoint uses. If no interface is specified in the join it will join on the host's default multicast interface.
|
| virtual bool | sendSockJoinMulticastGroup (DtInetAddr grpAddr, DtInetDevice *device=NULL) |
| |
| virtual bool | sendSockJoinMulticastGroup (DtInetEndpoint grpEndpoint, DtInetDevice *device=NULL) |
| |
| virtual bool | sendSockDropMulticastGroup (DtInetAddr grpAddr, DtInetDevice *device=NULL) |
| |
| virtual bool | sendSockDropMulticastGroup (DtInetEndpoint grpEndpoint, DtInetDevice *device=NULL) |
| |
|
| virtual void | setBundling (int maxBundleSize, int sizeOffset, int sizeLength, bool testDisHeader) |
| | Bundling is only performed when using the sendChain(), sendChainTo(), recvToChain(), and recvToChainFrom() methods. More...
|
| |
|
Setting maximum bundle size > 0 enables bundling.
Setting max bundle size to 0 disables bundling. For optimal network performance max bundle sizes should be slightly less than the MTU of the network.
|
| virtual bool | setMaxBundleSize (int size) |
| |
| virtual int | getMaxBundleSize () |
| |
| virtual bool | isBundling () |
| |
|
The minimum sized packet that can be received.
By default, size of DtDisSocketPduHeader
|
| virtual void | setMinPacketSize (int size) |
| |
| virtual int | minPacketSize () |
| |
|
| virtual void | setBundleByteAlignment (DtU32 size) |
| |
| virtual DtU32 | sendBundleByteAlignment () |
| |
| virtual DtU32 | receiveBundleByteAlignment (int protocolVersion) |
| |
|
These methods are called from the bundling callback functions to perform the actual work.
|
| virtual int | addToBundle (int size, DtInetBufferChain &buffChain, DtInetEndpoint &ep) |
| |
| virtual int | unbundle (int size, DtInetBufferChain &buffChain, DtInetEndpoint &ep, int *status) |
| |
| virtual int | getNextBundle (int size, DtInetBufferChain &buffChain, DtInetEndpoint &ep, int *status) |
| |
| virtual DtInetSockFlushStatus | flushBundle (DtInetEndpoint &ep) |
| |
| | DtInetUdpSocket () |
| | Default Constructor. More...
|
| |
| | DtInetUdpSocket (const DtInetEndpoint &dest, DtU16 localPort=0, DtInetDevice *hostIf=NULL, DtU32 flags=DtDefaultSockOpts, bool immediateOpen=true) |
| | Client Socket Constructor. More...
|
| |
| virtual | ~DtInetUdpSocket () |
| | Destructor. More...
|
| |
| virtual bool | setDestination (const DtInetEndpoint &dest) |
| | Set / get the destination endpoint for the socket. More...
|
| |
| virtual bool | bindToDevice (const DtInetDevice *hostIf=NULL) |
| | Set the network interface device the socket will attempt to bind to on the local host. More...
|
| |
| virtual bool | connectToDestination () |
| | Initiate a connection to a single unicast destination endpoint. More...
|
| |
| virtual bool | disconnect () |
| | Dissolve any unicast connection and return to normal 'connectionless' operation. More...
|
| |
| virtual bool | isOk () |
| | Deprecated. More...
|
| |
| virtual unsigned | descriptor () const |
| | Get the socket's descriptor. More...
|
| |
| virtual bool | setSocket (const DtInetEndpoint &dest, DtU16 localPort=0, DtInetDevice *hostIf=NULL, DtU32 flags=DtDefaultSockOpts) |
| | Set all socket parameters at once. More...
|
| |
| virtual void * | udpSocket () |
| | Return the underlying socket object. More...
|
| |
| virtual void * | secondUdpSocket () |
| | Return the second underlying socket object. More...
|
| |
| virtual DtInetSockRcvStatus | recv (caddr_t buff, size_t buffSize, DtU32 flags=0) |
| | Simple receive method. More...
|
| |
| virtual DtInetSockRcvStatus | recvToChain (DtInetBufferChain &packets, DtU32 flags=0) |
| | Receives into a buffer chain. More...
|
| |
| virtual DtInetSockRcvStatus | recvToChainFrom (DtInetBufferChain &packets, DtInetEndpoint &src, DtU32 flags=0) |
| | Simple receive method. More...
|
| |
| virtual bool | setMcastDevice (const DtInetAddr &devAddr) |
| |
| virtual bool | setMcastDevice (DtInetDevice *hostIf) |
| |
| virtual DtU32 | getSendBufferSize () |
| |
| virtual DtU32 | getReceiveBufferSize () |
| |
| virtual DtU32 | getBytesAvailable () |
| |
| virtual bool | getBroadcastOption () |
| |
| virtual bool | getReuseAddressOption () |
| |
| virtual bool | getDoNotRouteOption () |
| |
| virtual DtU32 | getSendLowWatermark () |
| |
| virtual DtU32 | getReceiveLowWatermark () |
| |
| virtual bool | joinMulticastGroup (const DtInetAddr &grpAddr, DtInetDevice *device=NULL) |
| | Change the default time-to-live on outbound multicast packets sent from this socket. More...
|
| |
| virtual bool | joinMulticastGroup (const DtInetEndpoint &grpEndpoint, DtInetDevice *device=NULL) |
| | Change the default time-to-live on outbound multicast packets sent from this socket. More...
|
| |
| virtual bool | dropMulticastGroup (const DtInetAddr &grpAddr, DtInetDevice *device=NULL) |
| | Change the default time-to-live on outbound multicast packets sent from this socket. More...
|
| |
| virtual bool | dropMulticastGroup (const DtInetEndpoint &grpEndpoint, DtInetDevice *device=NULL) |
| | Change the default time-to-live on outbound multicast packets sent from this socket. More...
|
| |
| | DtInetSocket () |
| | Default Constructor. More...
|
| |
| virtual | ~DtInetSocket () |
| | Destructor. More...
|
| |
| virtual const DtInetEndpoint & | destination () const |
| |
| virtual const DtInetEndpoint & | localEndpoint () const |
| | Get the local endpoint for the socket. More...
|
| |
| virtual bool | setLocalPort (DtU16 port) |
| | Set / get the local port number of the socket. More...
|
| |
| virtual DtU16 | localPort () const |
| |
| virtual const DtInetDevice * | hostIf () const |
| | Get the host network interface device the socket is bound to. More...
|
| |
| virtual DtInetSockState | state () |
| | Return the present state of the socket. More...
|
| |
| virtual DtU32 | protocol () const |
| | Get the protocol (DtInetProtocol_TCP or DtInetProtocol_UDP) More...
|
| |
virtual
DtInetUtils::DtInetAddrFamily | family () const |
| | Get the address family, IPv4 or IPv6. More...
|
| |
| virtual DtU32 | flags () |
| | Get the flags for this socket. More...
|
| |
| virtual int | getLastError () |
| | Return code or string describing last error. More...
|
| |
| virtual DtString | getLastErrorString () |
| |
| virtual bool | isErrorWouldBlockOrTryAgain () |
| |
| virtual void | clearError () |
| |
| virtual int | getTerminationCode () |
| | Return code or string describing termination cause. More...
|
| |
| virtual DtString | getTerminationString () |
| |
| virtual DtU64 | totalBytesSent () const |
| | Get traffic statistics. More...
|
| |
| virtual DtU64 | totalPacketsSent () const |
| |
| virtual DtU64 | totalBytesReceived () const |
| |
| virtual DtU64 | totalPacketsReceived () const |
| |
| virtual void | clearStats () |
| | Reset all statistics. More...
|
| |
| virtual bool | addProcessingCallback (DtInetSockProcessingType kind, DtInetSocketProcessingCallback cb, void *usr, int callSequence=-1) |
| | Add / remove pre- and post- processing callbacks. More...
|
| |
| virtual bool | removeProcessingCallback (DtInetSockProcessingType kind, DtInetSocketProcessingCallback cb) |
| |
| virtual DtTime | receiveTime () |
| |
| virtual bool | isNonBlocking () const |
| |
| virtual bool | isNoDelay () const |
| |
| virtual bool | isIPv4 () const |
| | Return true if the socket matches the queried family or protocol. More...
|
| |
| virtual bool | isIPv6 () const |
| | Return true if the socket matches the queried family or protocol. More...
|
| |
| virtual bool | isTcp () const |
| | Return true if the socket matches the queried family or protocol. More...
|
| |
| virtual bool | isUdp () const |
| | Return true if the socket matches the queried family or protocol. More...
|
| |
The DtDisSocket class provides an address family independent datagram socket.