cascardo/rnetclient.git
10 years agoDocument server answer and next client message.
Thadeu Lima de Souza Cascardo [Fri, 7 Jun 2013 11:33:54 +0000 (08:33 -0300)]
Document server answer and next client message.

10 years agoComplete format documentation.
Thadeu Lima de Souza Cascardo [Tue, 28 May 2013 11:25:20 +0000 (08:25 -0300)]
Complete format documentation.

10 years agoDocument message header.
Thadeu Lima de Souza Cascardo [Tue, 28 May 2013 09:17:03 +0000 (06:17 -0300)]
Document message header.

10 years agoStart of documentation about the protocol.
Thadeu Lima de Souza Cascardo [Tue, 28 May 2013 09:15:46 +0000 (06:15 -0300)]
Start of documentation about the protocol.

10 years agoCreate a function for the first handshake.
Thadeu Lima de Souza Cascardo [Fri, 7 Jun 2013 22:04:15 +0000 (19:04 -0300)]
Create a function for the first handshake.

10 years agoUse getaddrinfo to obtain receitanet's addresses.
Thadeu Lima de Souza Cascardo [Fri, 7 Jun 2013 21:55:18 +0000 (18:55 -0300)]
Use getaddrinfo to obtain receitanet's addresses.

The name address for receitanet is receitanet.receita.fazenda.gov.br.
Instead of using its IPv4 address directly, tries to resolve the name
and use the given addresses.

As a bonus, allows us to use /etc/hosts to debug with a test server.

10 years agoIncrease buffer size for testing.
Thadeu Lima de Souza Cascardo [Tue, 28 May 2013 11:26:43 +0000 (08:26 -0300)]
Increase buffer size for testing.

For the current tests, the buffer needs to be increased, so the data
file can be read.

10 years agoUse the right IP address for receitanet server
Thadeu Lima de Souza Cascardo [Tue, 28 May 2013 11:26:32 +0000 (08:26 -0300)]
Use the right IP address for receitanet server

10 years agoVerify connect return code.
Thadeu Lima de Souza Cascardo [Tue, 28 May 2013 09:12:20 +0000 (06:12 -0300)]
Verify connect return code.

If connect is not successful, exit.

10 years agoFirst take at a client for ReceitaNet.
Thadeu Lima de Souza Cascardo [Tue, 28 May 2013 09:09:37 +0000 (06:09 -0300)]
First take at a client for ReceitaNet.