1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-04-11 08:08:06 -05:00

Store default port number in each back end

[originally from svn r669]
This commit is contained in:
Simon Tatham 2000-10-04 14:35:15 +00:00
parent 1139bbddd0
commit 9a9bd54197
4 changed files with 7 additions and 3 deletions

View File

@ -115,6 +115,7 @@ typedef struct {
void (*special) (Telnet_Special code);
SOCKET (*socket) (void);
int (*sendok) (void);
int default_port;
} Backend;
GLOBAL Backend *back;

3
raw.c
View File

@ -243,5 +243,6 @@ Backend raw_backend = {
raw_size,
raw_special,
raw_socket,
raw_sendok
raw_sendok,
1
};

3
ssh.c
View File

@ -2627,5 +2627,6 @@ Backend ssh_backend = {
ssh_size,
ssh_special,
ssh_socket,
ssh_sendok
ssh_sendok,
22
};

View File

@ -761,5 +761,6 @@ Backend telnet_backend = {
telnet_size,
telnet_special,
telnet_socket,
telnet_sendok
telnet_sendok,
23
};