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

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

#include <tcp.h>

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

Public Member Functions

 ConnectedEvent (TCPSocket *socket)
 Construct a new connected 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 connected.
 
- 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 connected.

Definition at line 136 of file tcp.h.

Constructor & Destructor Documentation

◆ ConnectedEvent()

ConnectedEvent::ConnectedEvent ( TCPSocket socket)
explicit

Construct a new connected Event object.

Parameters
socketThe socket that is connected

Definition at line 608 of file tcp.cpp.

609 : Event(TCPPayloadHandlerEvents::CONNECTED) {
610 this->socket = socket;
611}
Used to store information about an event, has a type and a return value.
TCPSocket * socket
The socket that is connected.
Definition tcp.h:138

References socket.

Member Data Documentation

◆ socket

TCPSocket* MaxOS::net::ConnectedEvent::socket

The socket that is connected.

Definition at line 138 of file tcp.h.

Referenced by ConnectedEvent().


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