|
static bool | IsConnectionContextCorrect (ConnectionContext_t Context) |
| checks if the telnet connection context is correct
|
|
static ConnectionContext_t | ConnectionContext_New (oC_Tcp_Connection_t Connection, oC_Process_t Process) |
| allocates memory for the telnet connection context
|
|
static bool | ConnectionContext_Delete (ConnectionContext_t Context) |
| releases memory of the telnet connection context
|
|
static bool | ServiceContext_IsCorrect (ServiceContext_t Context) |
| checks if the telnet context is correct
|
|
static ServiceContext_t | ServiceContext_New (void) |
| allocates memory for a service context
|
|
static bool | ServiceContext_Delete (ServiceContext_t Context) |
| releases memory of a service context
|
|
static oC_ErrorCode_t | StartService (ServiceContext_t *outContext) |
| prepares Telnet service to work
|
|
static oC_ErrorCode_t | StopService (ServiceContext_t *Context) |
| releases Telnet service resources
|
|
static oC_ErrorCode_t | RunProgramForConnection (oC_Tcp_Connection_t Connection, oC_Tcp_Server_t Server) |
| runs default program for specific TCP connection
|
|
static oC_ErrorCode_t | ServiceThread (ServiceContext_t Context) |
| main Telnet service thread
|
|
static oC_ErrorCode_t | Configure (VirtualDriverConfig_t *Config, ConnectionContext_t *outContext) |
| configures TELNET connection to work
|
|
static oC_ErrorCode_t | Unconfigure (void *Dummy, ConnectionContext_t *Context) |
| unconfigures virtual telnet driver More...
|
|
static oC_ErrorCode_t | Write (ConnectionContext_t Context, const char *Buffer, uint32_t *Size, oC_Time_t Timeout) |
| function called when process want to write data on STDOUT stream
|
|
static oC_ErrorCode_t | Read (ConnectionContext_t Context, char *outBuffer, uint32_t *Size, oC_Time_t Timeout) |
| function called when process want to read data from STDIN stream
|
|
static void | ConnectionFinished (oC_Tcp_Connection_t Connection, void *Context) |
| function called when the connection has been finished
|
|
static void | MainThreadFinished (oC_Thread_t Thread, void *Connection) |
| function called when the main thread is finished
|
|
static oC_ErrorCode_t | SaveDataInNagleBuffer (ConnectionContext_t Context, const char *Data, uint32_t *Size, oC_Time_t Timeout) |
| saves data in Nagle's Buffer
|
|
static oC_ErrorCode_t | Fflush (ConnectionContext_t Context, oC_Time_t Timeout) |
| flushes data from Nagle's buffer
|
|
static void | NagleThread (void *Context) |
| thread for handling Nagle's buffering
|
|
static oC_ErrorCode_t | EstablishTelnetConnection (oC_Tcp_Connection_t Connection) |
| function for establishing telnet connection
|
|
- Author
- Patryk Kubiak - (Created on: 16.01.2017 21:32:17)
- Note
- Copyright (C) 2017 Patryk Kubiak patry.nosp@m.k.ku.nosp@m.biak@.nosp@m.choc.nosp@m.oos.o.nosp@m.rg
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Definition in file oc_telnet.c.