mirror of
https://github.com/ksherlock/gopher.git
synced 2025-01-14 22:31:31 +00:00
debug code
This commit is contained in:
parent
e7af668c67
commit
8b771de8d2
@ -44,6 +44,7 @@ static Word LoginAndOpen(Connection *buffer)
|
|||||||
|
|
||||||
Word ConnectionPoll(Connection *buffer)
|
Word ConnectionPoll(Connection *buffer)
|
||||||
{
|
{
|
||||||
|
|
||||||
Word state;
|
Word state;
|
||||||
if (!buffer) return -1;
|
if (!buffer) return -1;
|
||||||
state = buffer->state;
|
state = buffer->state;
|
||||||
@ -86,6 +87,9 @@ Word ConnectionPoll(Connection *buffer)
|
|||||||
{
|
{
|
||||||
//CloseAndLogout(buffer);
|
//CloseAndLogout(buffer);
|
||||||
|
|
||||||
|
s16_debug_printf("terr = %04x tool error = %04x", terr, _toolErr);
|
||||||
|
s16_debug_srbuff(&sr);
|
||||||
|
|
||||||
TCPIPCloseTCP(buffer->ipid);
|
TCPIPCloseTCP(buffer->ipid);
|
||||||
TCPIPLogout(buffer->ipid);
|
TCPIPLogout(buffer->ipid);
|
||||||
buffer->ipid = 0;
|
buffer->ipid = 0;
|
||||||
@ -102,6 +106,9 @@ Word ConnectionPoll(Connection *buffer)
|
|||||||
|
|
||||||
if (sr.srState == TCPSCLOSED || sr.srState == TCPSTIMEWAIT)
|
if (sr.srState == TCPSCLOSED || sr.srState == TCPSTIMEWAIT)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
s16_debug_srbuff(&sr);
|
||||||
|
|
||||||
TCPIPLogout(buffer->ipid);
|
TCPIPLogout(buffer->ipid);
|
||||||
buffer->ipid = 0;
|
buffer->ipid = 0;
|
||||||
buffer->state = kConnectionStateDisconnected;
|
buffer->state = kConnectionStateDisconnected;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user