return;
}
+/*
+ * Return a list of the special codes that make sense in this
+ * protocol.
+ */
+static const struct telnet_special *raw_get_specials(void *handle)
+{
+ return NULL;
+}
+
static Socket raw_socket(void *handle)
{
Raw raw = (Raw) handle;
static int raw_exitcode(void *handle)
{
- /* Exit codes are a meaningless concept in the Raw protocol */
- return 0;
+ Raw raw = (Raw) handle;
+ if (raw->s != NULL)
+ return -1; /* still connected */
+ else
+ /* Exit codes are a meaningless concept in the Raw protocol */
+ return 0;
}
Backend raw_backend = {
raw_sendbuffer,
raw_size,
raw_special,
+ raw_get_specials,
raw_socket,
raw_exitcode,
raw_sendok,