mirror of https://gerrit.osmocom.org/libtelnet
documentation update
This commit is contained in:
parent
d2466a01b6
commit
be230ee82a
7
NEWS
7
NEWS
|
@ -1,3 +1,10 @@
|
||||||
|
Version 0.12
|
||||||
|
============
|
||||||
|
|
||||||
|
* added pkg-config file
|
||||||
|
* telnet_t is now a private data structure
|
||||||
|
* telnet_init() allocates memory and returns a pointer
|
||||||
|
|
||||||
Version 0.11
|
Version 0.11
|
||||||
============
|
============
|
||||||
|
|
||||||
|
|
22
README
22
README
|
@ -91,13 +91,13 @@ IIa. Initialization
|
||||||
all connections if you support a fixed set of options. Most
|
all connections if you support a fixed set of options. Most
|
||||||
applications will support only a fixed set of options.
|
applications will support only a fixed set of options.
|
||||||
|
|
||||||
void telnet_init(telnet_t *telnet, const telnet_telopts_t *telopts,
|
telnet_t *telnet_init(const telnet_telopts_t *telopts,
|
||||||
telnet_event_handler_t handler, unsigned char flags,
|
telnet_event_handler_t handler, unsigned char flags,
|
||||||
void *user_data);
|
void *user_data);
|
||||||
The telnet_init() function is responsible for initializing the
|
The telnet_init() function is responsible for allocating memory
|
||||||
data in a telnet_t structure. It must be called immediately after
|
and initializing the data in a telnet_t structure. It must be
|
||||||
establishing a connection and before any other libtelnet API calls
|
called immediately after establishing a connection and before any
|
||||||
are made.
|
other libtelnet API calls are made.
|
||||||
|
|
||||||
The telopts field is the telopt support table as described above.
|
The telopts field is the telopt support table as described above.
|
||||||
|
|
||||||
|
@ -116,11 +116,15 @@ IIa. Initialization
|
||||||
TELNET_FLAG_PROXY
|
TELNET_FLAG_PROXY
|
||||||
Operate in proxy mode. This disables the RFC1143 support and
|
Operate in proxy mode. This disables the RFC1143 support and
|
||||||
enables automatic detection of COMPRESS2 streams.
|
enables automatic detection of COMPRESS2 streams.
|
||||||
|
|
||||||
|
If telnet_init() fails to allocate the required memory, the
|
||||||
|
returned pointer will be zero.
|
||||||
|
|
||||||
boid telnet_free(telnet_t *telnet);
|
void telnet_free(telnet_t *telnet);
|
||||||
Releases any internal memory allocated by libtelnet. This must be
|
Releases any internal memory allocated by libtelnet for the given
|
||||||
called whenever a connection is closed, or you will incur memory
|
telnet pointer. This must be called whenever a connection is
|
||||||
leaks.
|
closed, or you will incur memory leaks. The pointer passed in may
|
||||||
|
no longer be used afterwards.
|
||||||
|
|
||||||
IIb. Receiving Data
|
IIb. Receiving Data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue