Max OS 0.3
Loading...
Searching...
No Matches
MaxOS::net::DisconnectedEvent Class Reference

Event for when a TCP socket is disconnected. More...

#include <tcp.h>

Inheritance diagram for MaxOS::net::DisconnectedEvent:
MaxOS::common::Event< TCPPayloadHandlerEvents >

Public Member Functions

 DisconnectedEvent (TCPSocket *socket)
 Construct a new disconnected Event object.
 
- Public Member Functions inherited from MaxOS::common::Event< TCPPayloadHandlerEvents >
 Event (TCPPayloadHandlerEvents type)
 Constructs a new Event object.
 

Public Attributes

TCPSocketsocket
 The socket that is disconnected.
 
- Public Attributes inherited from MaxOS::common::Event< TCPPayloadHandlerEvents >
TCPPayloadHandlerEvents type
 
uint8_tbuffer_value
 
uint32_t int_value
 
bool bool_value
 
union { 
 
   uint8_t *   buffer_value 
 
   uint32_t   int_value 
 
   bool   bool_value 
 
return_value 
 

Detailed Description

Event for when a TCP socket is disconnected.

Definition at line 147 of file tcp.h.

Constructor & Destructor Documentation

◆ DisconnectedEvent()

DisconnectedEvent::DisconnectedEvent ( TCPSocket socket)
explicit

Construct a new disconnected Event object.

Parameters
socketThe socket that is disconnected

Definition at line 620 of file tcp.cpp.

621 : Event(TCPPayloadHandlerEvents::DISCONNECTED) {
622 this->socket = socket;
623}
Used to store information about an event, has a type and a return value.
TCPSocket * socket
The socket that is disconnected.
Definition tcp.h:149

References socket.

Member Data Documentation

◆ socket

TCPSocket* MaxOS::net::DisconnectedEvent::socket

The socket that is disconnected.

Definition at line 149 of file tcp.h.

Referenced by DisconnectedEvent().


The documentation for this class was generated from the following files: