Mercurial > dropbear
comparison common-session.c @ 568:005530560594
Rearrange getaddrstring() etc
author | Matt Johnston <matt@ucc.asn.au> |
---|---|
date | Tue, 01 Sep 2009 16:38:26 +0000 |
parents | 7de2f22ea759 |
children | a98a2138364a |
comparison
equal
deleted
inserted
replaced
567:893a9dd0b9dd | 568:005530560594 |
---|---|
50 int exitflag = 0; /* GLOBAL */ | 50 int exitflag = 0; /* GLOBAL */ |
51 | 51 |
52 | 52 |
53 | 53 |
54 /* called only at the start of a session, set up initial state */ | 54 /* called only at the start of a session, set up initial state */ |
55 void common_session_init(int sock_in, int sock_out, char* remotehost) { | 55 void common_session_init(int sock_in, int sock_out) { |
56 | 56 |
57 TRACE(("enter session_init")) | 57 TRACE(("enter session_init")) |
58 | |
59 ses.remotehost = remotehost; | |
60 | 58 |
61 ses.sock_in = sock_in; | 59 ses.sock_in = sock_in; |
62 ses.sock_out = sock_out; | 60 ses.sock_out = sock_out; |
63 ses.maxfd = MAX(sock_in, sock_out); | 61 ses.maxfd = MAX(sock_in, sock_out); |
64 | 62 |