29 |
void |
void |
30 |
receive_response(connection_t * conn, char *buf) |
receive_response(connection_t * conn, char *buf) |
31 |
{ |
{ |
32 |
|
|
33 |
if (socket_read(conn, buf) == ERROR_NETWORK) |
if (socket_read(conn, buf) == ERROR_NETWORK) |
34 |
longjmp(acctloop, -1); |
longjmp(acctloop, -1); |
35 |
|
|
44 |
int |
int |
45 |
response_generic(connection_t * conn, unsigned int tag) |
response_generic(connection_t * conn, unsigned int tag) |
46 |
{ |
{ |
47 |
|
|
48 |
buffer_reset(&ibuf); |
buffer_reset(&ibuf); |
49 |
|
|
50 |
do { |
do { |
63 |
void |
void |
64 |
response_bye(char *buf) |
response_bye(char *buf) |
65 |
{ |
{ |
66 |
|
|
67 |
if (strcasestr(buf, "* BYE")) |
if (strcasestr(buf, "* BYE")) |
68 |
longjmp(acctloop, -1); |
longjmp(acctloop, -1); |
69 |
} |
} |
75 |
int |
int |
76 |
response_greeting(connection_t * conn) |
response_greeting(connection_t * conn) |
77 |
{ |
{ |
78 |
|
|
79 |
buffer_reset(&ibuf); |
buffer_reset(&ibuf); |
80 |
|
|
81 |
receive_response(conn, ibuf.data); |
receive_response(conn, ibuf.data); |
97 |
int |
int |
98 |
response_logout(connection_t * conn, unsigned int tag) |
response_logout(connection_t * conn, unsigned int tag) |
99 |
{ |
{ |
100 |
|
|
101 |
buffer_reset(&ibuf); |
buffer_reset(&ibuf); |
102 |
|
|
103 |
do { |
do { |
115 |
int |
int |
116 |
response_capability(connection_t * conn, unsigned int tag) |
response_capability(connection_t * conn, unsigned int tag) |
117 |
{ |
{ |
118 |
|
|
119 |
buffer_reset(&ibuf); |
buffer_reset(&ibuf); |
120 |
|
|
121 |
do { |
do { |
261 |
int |
int |
262 |
response_select(connection_t * conn, unsigned int tag) |
response_select(connection_t * conn, unsigned int tag) |
263 |
{ |
{ |
264 |
|
|
265 |
buffer_reset(&ibuf); |
buffer_reset(&ibuf); |
266 |
|
|
267 |
do { |
do { |