# tcp_event Struct Reference

`#include <socket.h>`

## Data Fields
int16_t | socket
int8_t | type
void * | recvbuf
int16_t | recvlen
sockaddr_in6_t | addr

## Field Documentation

int16_t tcp_event::socket

Returns the same socket id during call time

int8_t tcp_event::type

Reflect the state of the underlying TCP session.

void* tcp_event::recvbuf

int16_t tcp_event::recvlen

sockaddr_in6_t tcp_event::addr

The socket address of the message's sender.

The documentation for this struct was generated from the following file:

- include/sys/socket.h