Network Component  Version 7.5.0
MDK Middleware for IPv4 and IPv6 Networking
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
NetSMTP: SMTP Client

Events generated by the Network - SMTP Client functions. More...

Functions

__STATIC_INLINE void EvrNetSMTP_InitClient (void)
 Event on SMTP client initialize (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_GetSocketFailed (void)
 Event on SMTP client failed to allocate TCP socket (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_ConnectIp4 (const void *net_addr)
 Event on SMTP client netSMTPc_Connect to IPv4 server (API) More...
 
__STATIC_INLINE void EvrNetSMTP_ConnectIp6 (const void *net_addr)
 Event on SMTP client netSMTPc_Connect to IPv6 server (API) More...
 
__STATIC_INLINE void EvrNetSMTP_ConnectInvalidParameter (void)
 Event on netSMTPc_Connect invalid parameter (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_ConnectClientBusy (void)
 Event on netSMTPc_Connect failed, client busy (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_InboundConnRejected (int32_t socket)
 Event on SMTP client inbound connection rejected (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_SocketAborted (int32_t socket)
 Event on SMTP client socket aborted (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_SocketConnected (int32_t socket)
 Event on SMTP client socket connected (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_SocketClosed (int32_t socket)
 Event on SMTP client socket closed (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_ReceiveFrame (int32_t socket, uint32_t length)
 Event on SMTP client received frame (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_UnackedDataError (int32_t socket)
 Event on SMTP client unacked data error (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_FrameTooShort (uint32_t length, uint32_t min_length)
 Event on SMTP received frame is too short (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_ServerReady (void)
 Event on SMTP client server ready response (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_EsmtpModeNotSupported (void)
 Event on SMTP client Extended SMTP mode (ESMTP) not supported (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_EhloResponseFragmented (void)
 Event on SMTP client EHLO response divided into multiple frames (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_EsmtpModeActive (void)
 Event on SMTP client Extended SMTP mode (ESMTP) active (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_StartAuthentication (uint8_t auth_mode)
 Event on SMTP client start authentication (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_AuthenticationDenied (void)
 Event on SMTP client authentication denied by the user (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_AuthMethodNotSupported (uint8_t auth_mode)
 Event on SMTP client authentication method not supported (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_SmtpModeActive (void)
 Event on SMTP client basic SMTP mode active (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_AuthenticationSuccessful (void)
 Event on SMTP client authentication completed successfully (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_AuthenticationFailed (void)
 Event on SMTP client authentication failed (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_ServerAcknowledge (void)
 Event on SMTP client received server acknowledgment (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_WrongResponse (const uint8_t *response, uint32_t length)
 Event on SMTP client received wrong response from server (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_ClientStopTimeoutExpired (void)
 Event on SMTP client stop operation timeout expired (Error) More...
 
__STATIC_INLINE void EvrNetSMTP_SendMessageBody (void)
 Event on SMTP client send message body start (Op) More...
 
__STATIC_INLINE void EvrNetSMTP_SendCommand (const uint8_t *command, uint32_t length)
 Event on SMTP client send command to server (Detail) More...
 
__STATIC_INLINE void EvrNetSMTP_ClientDone (void)
 Event on SMTP client completed operation (Op) More...
 

Description

Events generated by the Network - SMTP Client functions.

Function Documentation

__STATIC_INLINE void EvrNetSMTP_AuthenticationDenied ( void  )

Event on SMTP client authentication denied by the user (Op)

__STATIC_INLINE void EvrNetSMTP_AuthenticationFailed ( void  )

Event on SMTP client authentication failed (Error)

__STATIC_INLINE void EvrNetSMTP_AuthenticationSuccessful ( void  )

Event on SMTP client authentication completed successfully (Op)

__STATIC_INLINE void EvrNetSMTP_AuthMethodNotSupported ( uint8_t  auth_mode)

Event on SMTP client authentication method not supported (Error)

Parameters
auth_modeSMTP authentication mode
  • 0: not required
  • 1: PLAIN
  • 2: LOGIN
  • 3: DIGEST-MD5
  • 4: CRAM-MD5
  • 5: NTLM
  • 6: unknown
__STATIC_INLINE void EvrNetSMTP_ClientDone ( void  )

Event on SMTP client completed operation (Op)

__STATIC_INLINE void EvrNetSMTP_ClientStopTimeoutExpired ( void  )

Event on SMTP client stop operation timeout expired (Error)

__STATIC_INLINE void EvrNetSMTP_ConnectClientBusy ( void  )

Event on netSMTPc_Connect failed, client busy (Error)

__STATIC_INLINE void EvrNetSMTP_ConnectInvalidParameter ( void  )

Event on netSMTPc_Connect invalid parameter (Error)

__STATIC_INLINE void EvrNetSMTP_ConnectIp4 ( const void *  net_addr)

Event on SMTP client netSMTPc_Connect to IPv4 server (API)

Parameters
net_addrpointer to NET_ADDR4 server address structure (8 bytes)
Note
Sends reduced size of net address structure with IPv4 address only.
__STATIC_INLINE void EvrNetSMTP_ConnectIp6 ( const void *  net_addr)

Event on SMTP client netSMTPc_Connect to IPv6 server (API)

Parameters
net_addrpointer to NET_ADDR server address structure (20 bytes)
Note
Sends full size of net address structure with IPv6 address only.
__STATIC_INLINE void EvrNetSMTP_EhloResponseFragmented ( void  )

Event on SMTP client EHLO response divided into multiple frames (Op)

__STATIC_INLINE void EvrNetSMTP_EsmtpModeActive ( void  )

Event on SMTP client Extended SMTP mode (ESMTP) active (Op)

__STATIC_INLINE void EvrNetSMTP_EsmtpModeNotSupported ( void  )

Event on SMTP client Extended SMTP mode (ESMTP) not supported (Op)

__STATIC_INLINE void EvrNetSMTP_FrameTooShort ( uint32_t  length,
uint32_t  min_length 
)

Event on SMTP received frame is too short (Error)

Parameters
lengthframe length in bytes
min_lengthminimum length of the frame
__STATIC_INLINE void EvrNetSMTP_GetSocketFailed ( void  )

Event on SMTP client failed to allocate TCP socket (Error)

__STATIC_INLINE void EvrNetSMTP_InboundConnRejected ( int32_t  socket)

Event on SMTP client inbound connection rejected (Error)

Parameters
socketassigned TCP socket
__STATIC_INLINE void EvrNetSMTP_InitClient ( void  )

Event on SMTP client initialize (Op)

__STATIC_INLINE void EvrNetSMTP_ReceiveFrame ( int32_t  socket,
uint32_t  length 
)

Event on SMTP client received frame (Op)

Parameters
socketassigned TCP socket
lengthframe length in bytes
__STATIC_INLINE void EvrNetSMTP_SendCommand ( const uint8_t *  command,
uint32_t  length 
)

Event on SMTP client send command to server (Detail)

Parameters
commandserver command in text form
lengthlength of the command string
__STATIC_INLINE void EvrNetSMTP_SendMessageBody ( void  )

Event on SMTP client send message body start (Op)

__STATIC_INLINE void EvrNetSMTP_ServerAcknowledge ( void  )

Event on SMTP client received server acknowledgment (Op)

__STATIC_INLINE void EvrNetSMTP_ServerReady ( void  )

Event on SMTP client server ready response (Op)

__STATIC_INLINE void EvrNetSMTP_SmtpModeActive ( void  )

Event on SMTP client basic SMTP mode active (Op)

__STATIC_INLINE void EvrNetSMTP_SocketAborted ( int32_t  socket)

Event on SMTP client socket aborted (Error)

Parameters
socketassigned TCP socket
__STATIC_INLINE void EvrNetSMTP_SocketClosed ( int32_t  socket)

Event on SMTP client socket closed (Op)

Parameters
socketassigned TCP socket
__STATIC_INLINE void EvrNetSMTP_SocketConnected ( int32_t  socket)

Event on SMTP client socket connected (Op)

Parameters
socketassigned TCP socket
__STATIC_INLINE void EvrNetSMTP_StartAuthentication ( uint8_t  auth_mode)

Event on SMTP client start authentication (Op)

Parameters
auth_modeSMTP authentication mode
  • 0: not required
  • 1: PLAIN
  • 2: LOGIN
  • 3: DIGEST-MD5
  • 4: CRAM-MD5
  • 5: NTLM
  • 6: unknown
__STATIC_INLINE void EvrNetSMTP_UnackedDataError ( int32_t  socket)

Event on SMTP client unacked data error (Error)

Parameters
socketassigned TCP socket
__STATIC_INLINE void EvrNetSMTP_WrongResponse ( const uint8_t *  response,
uint32_t  length 
)

Event on SMTP client received wrong response from server (Error)

Parameters
responseserver response in text form
lengthlength of the response string