Commit 8a5df2650895c7d4bbad4e4b2aeacad28f2d550f

Authored by perry.werneck@gmail.com
1 parent 35c35367

Incluindo buffer para teste da função de rpq

Showing 1 changed file with 3 additions and 0 deletions   Show diff stats
src/tests/rpqtest.c
... ... @@ -47,11 +47,14 @@ static int dump_buffer(H3270 *hSession, unsigned const char *buf, int len)
47 47  
48 48 int main(int numpar, char *param[])
49 49 {
  50 + unsigned char buffer[] = { 0xf3, 0x00, 0x05, 0x01, 0xff, 0x02 };
  51 +
50 52 H3270 *hSession = lib3270_session_new("");
51 53 hSession->write = dump_buffer;
52 54  
53 55 lib3270_set_toggle(hSession,LIB3270_TOGGLE_DS_TRACE,1);
54 56  
  57 + write_structured_field(hSession, buffer, 6);
55 58  
56 59 lib3270_session_free(hSession);
57 60 return 0;
... ...