equal
deleted
inserted
replaced
67 "\n" |
67 "\n" |
68 "Accepts connections on port 11898\n" |
68 "Accepts connections on port 11898\n" |
69 "and repeat '\\n' terminated lines \n" |
69 "and repeat '\\n' terminated lines \n" |
70 "to each connected client\n" |
70 "to each connected client\n" |
71 "\n" |
71 "\n" |
72 "Use netcat to monitor trafic\n" |
72 "Use netcat to monitor/log trafic\n" |
73 " nc 127.0.0.1 11898\n" |
73 " nc 127.0.0.1 11898\n" |
|
74 "\n" |
|
75 "CAN message format:\n" |
|
76 "{COB_ID,RTR,data_len,{data}}\n" |
74 "\n"); |
77 "\n"); |
|
78 |
75 fflush(stdout); |
79 fflush(stdout); |
76 SocketServer in(11898,5); |
80 SocketServer in(11898,5); |
77 |
81 |
78 while (1) { |
82 while (1) { |
79 Socket* s=in.Accept(); |
83 Socket* s=in.Accept(); |