Changeset 7c912b6 in mainline for uspace/app/nterm
- Timestamp:
- 2012-05-12T09:39:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d67e16
- Parents:
- 01a7aa1
- Location:
- uspace/app/nterm
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/nterm/conn.c
r01a7aa1 r7c912b6 38 38 #include <net/socket.h> 39 39 #include <stdio.h> 40 #include <str_error.h> 40 41 #include <sys/types.h> 41 42 … … 46 47 static fid_t rcv_fid; 47 48 48 #define RECV_BUF_SIZE 1 49 #define RECV_BUF_SIZE 1024 49 50 static uint8_t recv_buf[RECV_BUF_SIZE]; 50 51 … … 61 62 } 62 63 63 printf("Recv fibril terminated.\n"); 64 if (nr == ENOTCONN) 65 printf("\n[Other side has closed the connection]\n"); 66 else 67 printf("'\n[Receive errror (%s)]\n", str_error(nr)); 64 68 65 69 return 0; -
uspace/app/nterm/nterm.c
r01a7aa1 r7c912b6 68 68 rc = conn_send(cbuf, offs); 69 69 if (rc != EOK) { 70 printf(" Failed sending data.\n");70 printf("[Failed sending data]\n"); 71 71 } 72 72 } … … 106 106 putchar(dp[i]); 107 107 } 108 109 fflush(stdout); 108 110 } 109 111
Note:
See TracChangeset
for help on using the changeset viewer.
