src/dps8/fnpuv.c
//
// Write data to a connection, doing Telnet if needed.
//
Write data to a connection, doing Telnet if needed.
Write data to a connection doing Telnet if needed .
void fnpuv_start_write (uv_tcp_t * client, char * data, ssize_t datalen)
  {
    if (! client || uv_is_closing ((uv_handle_t *) client))
      return;
    uvClientData * p = (uvClientData *) client->data;
    if (! p)
      return;
    if (p->telnetp)
      {
        telnet_send (p->telnetp, data, (size_t) datalen);
      }
    else
      {
        fnpuv_start_write_actual (client, data, datalen);
      }
  }
void fnpuv_start_write ( uv_tcp_t * client , char * data , ssize_t datalen ) { if ( ! client || uv_is_closing ( ( uv_handle_t * ) client ) ) return ; uvClientData * p = ( uvClientData * ) client -> data ; if ( ! p ) return ; if ( p -> telnetp ) { telnet_send ( p -> telnetp , data , ( size_t ) datalen ) ; } else { fnpuv_start_write_actual ( client , data , datalen ) ; } }
Write data to a connection, doing Telnet if needed.
Write data to a connection doing Telnet if needed .