Skip to content

Commit 79c6f15

Browse files
authored
Merge pull request #17 from stffrdhrn/tcp-listen
tcp: Print listening status after TCP Console socket is open
2 parents d3d43fb + 6560532 commit 79c6f15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

peripheral/channels/tcp.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,9 @@ tcp_init (const char *input)
130130
if (listen (fd, 1) < 0)
131131
goto error;
132132

133+
printf ("Or1ksim: Console listening for telnet on port %d\n", port_number);
134+
fflush (stdout);
135+
133136
channel->socket_fd = fd;
134137
channel->port_number = port_number;
135138
channel->connected = 0;

0 commit comments

Comments
 (0)