This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
============================================================================ | |
can.txt | |
Readme file for the Controller Area Network Protocol Family (aka SocketCAN) | |
This file contains | |
1 Overview / What is SocketCAN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
/* implementing virtual functions */ | |
class B | |
{ | |
public: | |
B() { f1(); } | |
/* compilers typically number the virtual functions in the order | |
in which they're declared */ | |
virtual ~B() {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alt + tab: switch between program | |
alt: focus on menu and use arrow keys up, down, left, rift | |
shift + F10: Right click | |
ctrol + esc: start menu | |
alt + down arrow: open drop down list box | |
alt + f4: close current program | |
alt + enter: open properties for the selected object |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tcpdump [options] [protocol] [type] | |
options: -n : display no. not names | |
-nn : no. for machine and port | |
-i : sniff particular interface | |
-v : verbose (-vv or -vvv) | |
-w : dump packet to file | |
-r : read packets from file | |
-x : print hex | |
-X : print HEX and ASCII |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Read a file into byte array | |
internal static byte[] ReadFile (string fileName) | |
{ | |
FileStream f = new FileStream(fileName, FileMode.Open, FileAccess.Read); | |
int size = (int)f.Length; | |
var data = new byte[size]; | |
size = f.Read(data, 0, size); | |
f.Close(); | |
return data; | |
} |