Revision 997564ce
Added by Hamish Coleman over 17 years ago
- ID 997564ce58d8ce872449892f17fe09c78d18fc33
| wconsd.c | ||
|---|---|---|
|
dprintf(1,"wconsd[%i]: option IAC %i\n",conn->id,buf[1]);
|
||
|
return 2;
|
||
|
case 243: /* Break */
|
||
|
/* TODO */
|
||
|
dprintf(1,"wconsd[%i]: break not supported\n",conn->id);
|
||
|
if (conn->serialconnected) {
|
||
|
dprintf(1,"wconsd[%i]: send break\n",conn->id);
|
||
|
Sleep(1000);
|
||
|
SetCommBreak(conn->serial);
|
||
|
Sleep(1000);
|
||
|
ClearCommBreak(conn->serial);
|
||
|
}
|
||
|
return 2;
|
||
|
case 244: /* Interrupt */
|
||
|
dprintf(1,"wconsd[%i]: option IAC Interrupt\n",conn->id,buf[1]);
|
||
| ... | ... | |
|
netprintf(conn,"Connection ID %i not found\r\n",connid);
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
netprintf(&connection[i],"Serial Connection Closed by Connection ID %i\r\n",conn->id);
|
||
|
close_serial_connection(&connection[i]);
|
||
|
netprintf(conn,"Connection ID %i serial port closed\r\n",connid);
|
||
|
} else {
|
||
Also available in: Unified diff
Implement send break function (closes #23)