📄 response.h
字号:
/* $Id: response.h,v 1.1 2004/08/14 07:53:15 jonas Exp $ */#ifndef EL__PROTOCOL_NNTP_RESPONSE_H#define EL__PROTOCOL_NNTP_RESPONSE_H#include "lowlevel/connect.h"#include "protocol/nntp/connection.h"#include "sched/connection.h"/* Reads multi-lined response data *//* Slightly abusive usage of connection state to signal what is going on * or what went wrong: * S_TRANS (transferring) means 'end-of-text' not reached yet * S_OK means no more text expected * S_OUT_OF_MEM allocation failure of some sort */enum connection_stateread_nntp_response_data(struct connection *conn, struct read_buffer *rb);/* Reads the first line in the NNTP response from the @rb read buffer and * returns the response code. *//* Returns: * NNTP_CODE_NONE if no \r\n ended line could be read and another * check should be rescheduled. * NNTP_CODE_INVALID if the response code is not within the range * 100 - 599 of valid codes. */enum nntp_codeget_nntp_response_code(struct connection *conn, struct read_buffer *rb);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -