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
| cmake_minimum_required(VERSION 2.8.12) | |
| project(Trojan) | |
| option(STATIC "Link libraries statically") | |
| set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -O3 -Wall -Wextra") | |
| set(THREADS_PREFER_PTHREAD_FLAG ON) | |
| if(STATIC) | |
| set(Boost_USE_STATIC_LIBS ON) | |
| endif() | |
| add_executable(trojan src/clientsession.cpp src/config.cpp src/log.cpp src/main.cpp src/serversession.cpp src/service.cpp src/session.cpp src/socks5address.cpp src/ssldefaults.cpp src/trojanrequest.cpp src/udppacket.cpp src/version.cpp) | |
| find_package(Threads REQUIRED) |
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
| package main | |
| import ( | |
| "github.com/ngaut/log" | |
| ) | |
| type aa = interface{} | |
| type bb = interface{} | |
| type fun = func(aa) bb |
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
| import Text.ParserCombinators.Parsec hiding (spaces) | |
| import System.Environment | |
| import Control.Monad | |
| data MyVal = Number Integer | |
| | FloatNumber Double | |
| | String String | |
| deriving(Show) |