This file contains hidden or 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
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or 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
| /* | |
| Packet sniffer using libpcap library | |
| */ | |
| #include<pcap.h> | |
| #include<stdio.h> | |
| #include<stdlib.h> // for exit() | |
| #include<string.h> //for memset | |
| #include<sys/socket.h> | |
| #include<arpa/inet.h> // for inet_ntoa() |
This file contains hidden or 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
| /* | |
| * C_Header_Template.h | |
| * | |
| * Created on: YYYY. M. D. | |
| * Author: AUTHOR_NAME | |
| */ | |
| #ifndef C_HEADER_TEMPLATE_H_ | |
| #define C_HEADER_TEMPLATE_H_ |
This file contains hidden or 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
| pragma solidity ^0.4.21; | |
| // Remove 'Warning's | |
| contract testContract { | |
| uint value; | |
| constructor(uint _p) public { | |
| value = _p; | |
| } | |
| function setP(uint _n) payable public { | |
| value = _n; |
This file contains hidden or 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
| pragma solidity ^0.4.21; | |
| contract VisitCounter { | |
| uint256 private totalVisit; | |
| struct Visitor { | |
| string name; | |
| uint256 visitCount; | |
| } |
This file contains hidden or 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
| pragma solidity ^0.4.21; | |
| contract VisitCounter { | |
| uint256 private totalVisit; | |
| struct Visitor { | |
| string name; | |
| uint256 visitCount; | |
| } |