1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-02 12:02:47 -05:00

Yet another attempt at OOB handling in the network abstraction. This

version allows you to specify, per socket, which sockets receive OOB
data in-line (so that you know what was before the mark and what was
after) and which receive it out of line (so it's really a one-byte
out-of-band facility rather than discard-to-mark). This reflects the
fact that rlogin appears to make more sense in the latter mode, and
telnet in the former. This patch makes rlogin work right for me.

[originally from svn r921]
This commit is contained in:
Simon Tatham
2001-02-01 14:11:04 +00:00
parent 1e2b9ced01
commit 60585cff9c
7 changed files with 40 additions and 24 deletions

View File

@ -40,7 +40,8 @@ void sk_init(void); /* called once at program startup */
SockAddr sk_namelookup(char *host, char **canonicalname);
void sk_addr_free(SockAddr addr);
Socket sk_new(SockAddr addr, int port, int privport, sk_receiver_t receiver);
Socket sk_new(SockAddr addr, int port, int privport, int oobinline,
sk_receiver_t receiver);
void sk_close(Socket s);
void sk_write(Socket s, char *buf, int len);
void sk_write_oob(Socket s, char *buf, int len);