repo_name stringlengths 5 122 | path stringlengths 3 232 | text stringlengths 6 1.05M |
|---|---|---|
Fragrant-Yang/git-test-copy | MyMuduo/Lib/Channel.h | #ifndef NLIB_CHANNEL_H
#define NLIB_CHANNEL_H
#include "header.h"
#include "TimeStamp.h"
#include "EventLoop.h"
class EventLoop;
// 1.一个事件循环loop时占据一个线程
// 线程不停处理的就是阻塞等待描述符集合中每个描述符上事件是否发生
// 每个描述符要等待哪些事件/事件发生时各类回调指定/等待事件更新
// Channel负责处理上述事宜
// 2.Channel对象本身无互斥/同步处理.
// 存在多线程操作共享Channel对象情况时,使用者负责处理互斥/同步
// 描述符... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/Poller.h | <gh_stars>1-10
#ifndef NLIB_POLLER_H
#define NLIB_POLLER_H
#include "header.h"
#include "TimeStamp.h"
#include "EventLoop.h"
class Channel;
class Poller
{
public:
typedef std::vector<Channel*> ChannelList;
Poller(
EventLoop* loop);
virtual ~Poller();
virtual TimeStamp poll(
int timeout... |
Fragrant-Yang/git-test-copy | MuduoServer/DataStruct/fixqueue.h | // Author : XuBenHao
// Version : 1.0.0
// Mail : <EMAIL>
// Copyright : XuBenHao 2020 - 2030
#ifndef DATA_STRUCT_FIXQUEUE_H
#define DATA_STRUCT_FIXQUEUE_H
#include "header.h"
#include "doublelist.h"
namespace NDataStruct
{
template <typename T, int N>
class FixQueue
{
public:
FixQueue();
... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/ThreadLocal.h | #ifndef NLIB_THREADLOCAL_H
#define NLIB_THREADLOCAL_H
#include "Mutex.h"
// 一个模板类对象
// 包含的m_nKey提供了所有线程共享的一个索引
// 包含的value,可供所有可访问此对象的线程调用,以得到调用线程自己的一个T对象
// 对每个T
// 提供一个所有线程共享的全局ThreadLocal<T>对象即可
template<typename T>
class ThreadLocal
{
public:
ThreadLocal()
{
pthread_key_create(
&m_nKey... |
Fragrant-Yang/git-test-copy | MuduoServer/MuduoApp/muduoclient.h | <gh_stars>1-10
// Author : XuBenHao
// Version : 1.0.0
// Mail : <EMAIL>
// Copyright : XuBenHao 2020 - 2030
//
#ifndef MUDUO_APP_MUDUOCLIENT_H
#define MUDUO_APP_MUDUOCLIENT_H
#include "header.h"
#include "codec.h"
void LogOutput(const char* msg, int len);
class MuduoClient
{
public:
static MuduoClient* instance... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/TimeZone.h | #ifndef NLIB_TIMEZONE_H
#define NLIB_TIMEZONE_H
#include "header.h"
class TimeZone
{
public:
explicit TimeZone(
const char* zonefile);
TimeZone(
int eastOfUtc,
const char* tzname);
TimeZone() = default;
bool valid() const
{
return (bool)(m_pData);
}
... |
Fragrant-Yang/git-test-copy | MuduoServer/MuduoApp/muduoserver.h | <gh_stars>1-10
// Author : XuBenHao
// Version : 1.0.0
// Mail : <EMAIL>
// Copyright : XuBenHao 2020 - 2030
//
#ifndef MUDUO_APP_MUDUOSERVER_H
#define MUDUO_APP_MUDUOSERVER_H
#include "header.h"
#include "codec.h"
// TcpServer的用户通过TcpServer提供的接口来使用TcpServer的功能
// 内部的高效运作,正确性管理属于网络库的责任
//
// 提供的接口包含:
// 1.开启服务器的监听
/... |
Fragrant-Yang/git-test-copy | MuduoClient/Ui/addfrienddialog.h | <filename>MuduoClient/Ui/addfrienddialog.h
// Author : XuBenHao
// Version : 1.0.0
// Mail : <EMAIL>
// Copyright : XuBenHao 2020 - 2030
//
#ifndef APP_UI_ADDFRIENDDIALOG_H
#define APP_UI_ADDFRIENDDIALOG_H
#include "header.h"
namespace Ui {
class AddFriendDialog;
}
class AddFriendDialog : public QDialog
{
Q_OBJ... |
Fragrant-Yang/git-test-copy | MuduoServer/MuduoApp/lib.h | <filename>MuduoServer/MuduoApp/lib.h<gh_stars>1-10
#ifndef MUDUO_APP_LIB_H
#define MUDUO_APP_LIB_H
#include "muduoclient.h"
#include "muduoserver.h"
#endif // LIB_H
|
Fragrant-Yang/git-test-copy | MuduoClient/Ui/registerandloginwidget.h | <filename>MuduoClient/Ui/registerandloginwidget.h
// Author : XuBenHao
// Version : 1.0.0
// Mail : <EMAIL>
// Copyright : XuBenHao 2020 - 2030
//
#ifndef APP_UI_REGISTERANDLOGINWIDGET_H
#define APP_UI_REGISTERANDLOGINWIDGET_H
#include "header.h"
namespace Ui {
class RegisterAndLoginWidget;
}
class RegisterAndLogin... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/PollPoller.h | #ifndef NLIB_POLLER_POLLPOLLER_H
#define NLIB_POLLER_POLLPOLLER_H
#include "header.h"
#include "Poller.h"
struct pollfd;
class PollPoller : public Poller
{
public:
PollPoller(
EventLoop* loop);
~PollPoller() override;
TimeStamp poll(
int timeoutMs,
ChannelList* activeChannels) ove... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/WeakCallback.h | <reponame>Fragrant-Yang/git-test-copy
#ifndef NLIB_WEAKCALLBACK_H
#define NLIB_WEAKCALLBACK_H
template<typename CLASS, typename... ARGS>
class WeakCallback
{
public:
WeakCallback(
const std::weak_ptr<CLASS>& object,
const std::function<void (CLASS*, ARGS...)>& function)
: m_nObject(object),... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/FileUtil.h | <gh_stars>1-10
#ifndef NLIB_FILEUTIL_H
#define NLIB_FILEUTIL_H
#include "header.h"
#include "StringPiece.h"
// 通过类的接口来实现将文件内容读入缓冲区
class ReadSmallFile
{
public:
ReadSmallFile(
StringArg filename);
~ReadSmallFile();
template<typename T>
int readToString(
int maxSize,
T* co... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/CountDownLatch.h | #ifndef NLIB_COUNTDOWNLATCH_H
#define NLIB_COUNTDOWNLATCH_H
#include "header.h"
#include "Condition.h"
#include "Mutex.h"
// 一个内部支持
// 多线程间互斥/同步访问的对象类型
// 内部处理的是一个计数
class CountDownLatch
{
public:
explicit CountDownLatch(int count);
void wait();
void countDown();
int getCount() const;
private:
//... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/Endian.h | #ifndef NLIB_ENDIAN_H
#define NLIB_ENDIAN_H
#include "header.h"
inline uint64_t hostToNetwork64(uint64_t host64)
{
// 以主机字节序存储的整数值变为大端存储的整数值
return htobe64(host64);
}
inline uint32_t hostToNetwork32(uint32_t host32)
{
return htobe32(host32);
}
inline uint16_t hostToNetwork16(uint16_t host16)
{
return ... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/StringPiece.h | <gh_stars>1-10
#ifndef NLIB_STRINGPIECE_H
#define NLIB_STRINGPIECE_H
#include "header.h"
class StringArg
{
public:
StringArg(const char* str_)
: m_str(str_)
{
}
StringArg(const string& str_)
: m_str(str_.c_str())
{
}
const char* c_str() const
{
return m... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/EventLoopThread.h | #ifndef NLIB_EVENTLOOPTHREAD_H
#define NLIB_EVENTLOOPTHREAD_H
#include "header.h"
#include "Condition.h"
#include "Mutex.h"
#include "Thread.h"
// 从一个类型得到新类型
// 1.继承
// 2.组合
class EventLoop;
class EventLoopThread
{
public:
typedef std::function<void(EventLoop*)>
ThreadInitCallback;
EventLoopThre... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/EventLoop.h | #ifndef NLIB_EVENTLOOP_H
#define NLIB_EVENTLOOP_H
#include "header.h"
#include "CallBacks.h"
#include "TimerId.h"
#include "Mutex.h"
class Channel;
class Poller;
class TimerQueue;
class EventLoop
{
public:
typedef std::function<void()> Functor;
EventLoop();
~EventLoop();
void loop();
void quit... |
Fragrant-Yang/git-test-copy | MuduoServer/MuduoApp/header.h | <filename>MuduoServer/MuduoApp/header.h
#ifndef MUDUO_APP_HEADER_H
#define MUDUO_APP_HEADER_H
#include "../MyMuduo/Tcp/lib.h"
#include "../MyMuduo/Tcp/lib.h"
#include "MySqlAgent/lib.h"
#include "DataStruct/lib.h"
#endif // HEADER_H
|
Fragrant-Yang/git-test-copy | MuduoServer/DataStruct/header.h | <filename>MuduoServer/DataStruct/header.h
#ifndef DATASTRUCT_HEADER_H
#define DATASTRUCT_HEADER_H
#include "Global/lib.h"
#endif // HEADER_H
|
Fragrant-Yang/git-test-copy | MyMuduo/Tcp/TcpServer.h | <reponame>Fragrant-Yang/git-test-copy
#ifndef NLIB_TCPSERVER_H
#define NLIB_TCPSERVER_H
#include "../Lib/lib.h"
#include "TcpConnection.h"
#include "Acceptor.h"
class Acceptor;
class EventLoop;
class EventLoopThreadPool;
class TcpServer
{
public:
typedef std::function<void(EventLoop*)> ThreadInitCallback;
en... |
Fragrant-Yang/git-test-copy | MyMuduo/Tcp/Acceptor.h | #ifndef NLIB_ACCEPTOR_H
#define NLIB_ACCEPTOR_H
#include "../Lib/lib.h"
class EventLoop;
class InetAddress;
class Acceptor
{
public:
typedef std::function<void (
int sockfd,
const InetAddress&)> NewConnectionCallback;
Acceptor(
EventLoop* loop,
const InetAddress& listenAddr... |
Fragrant-Yang/git-test-copy | MuduoServer/DataStruct/datastruct.h | #ifndef DATA_STRUCT_DATASTRUCT_H
#define DATA_STRUCT_DATASTRUCT_H
#endif // DATASTRUCT_H
|
Fragrant-Yang/git-test-copy | MuduoClient/Global/header.h | #ifndef GLOBAL_HEADER_H
#define GLOBAL_HEADER_H
#include <stdlib.h>
#include <stdio.h>
#include <assert.h>
#include <malloc.h>
#include <iostream>
#include <bitset>
#include <time.h>
#include <functional>
#include <iostream>
#include <memory>
#include <string>
#include <math.h>
#include <vector>
#include <functional>
#... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/ProcessInfo.h | #ifndef NLIB_PROCESSINFO_H
#define NLIB_PROCESSINFO_H
#include "header.h"
#include "StringPiece.h"
#include "TimeStamp.h"
pid_t pid();
string pidString();
uid_t uid();
string username();
uid_t euid();
TimeStamp startTime();
int clockTicksPerSecond();
int pageSize();
bool isDebugBuild();
string hostname();
string pro... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/Buffer.h | <reponame>Fragrant-Yang/git-test-copy
#ifndef NLIB_BUFFER_H
#define NLIB_BUFFER_H
#include "header.h"
#include "StringPiece.h"
#include "Endian.h"
#include "Logging.h"
// Buffer的设计:
// 1.容量动态变化
// 2.默认无锁/同步
// 3.锁定区+已经处理区+尚未处理区+可操作区
//
class Buffer
{
public:
static const size_t s_nCheapPrepend = 8;
static cons... |
Fragrant-Yang/git-test-copy | MyMuduo/Lib/LogFile.h | #ifndef NLIB_LOGFILE_H
#define NLIB_LOGFILE_H
#include "Mutex.h"
class AppendFile;
class LogFile
{
public:
// 单个日志文件不能太大
// 一段时间后自动将缓存刷新到磁盘文件
// 每天一个日志
LogFile(
const string& basename,
off_t rollSize,
bool threadSafe = true,
int flushInterval = 3,
int checkEvery... |
Fragrant-Yang/git-test-copy | MuduoServer/MySqlAgent/mysqlagent.h | <gh_stars>1-10
// Author : XuBenHao
// Version : 1.0.0
// Mail : <EMAIL>
// Copyright : XuBenHao 2020 - 2030
//
#ifndef MYSQL_AGENT_MYSQLAGENT_H
#define MYSQL_AGENT_MYSQLAGENT_H
#include "header.h"
class MySqlAgent
{
public:
public:
MySqlAgent(
char* pStrHost_,
int nHostLen_,
char* pStrUs... |
Fragrant-Yang/git-test-copy | MyMuduo/Tcp/lib.h | #ifndef TCP_LIB_H
#define TCP_LIB_H
#include "Acceptor.h"
#include "Connector.h"
#include "TcpClient.h"
#include "TcpConnection.h"
#include "TcpServer.h"
#endif
|
Fragrant-Yang/git-test-copy | MuduoClient/Ui/header.h | #ifndef APP_UI_HEADER_H
#define APP_UI_HEADER_H
#include "Global/lib.h"
#include "DataStruct/lib.h"
#include "MuduoApp/lib.h"
#endif // HEADER_H
|
Fragrant-Yang/git-test-copy | MyMuduo/Lib/Atomic.h | <filename>MyMuduo/Lib/Atomic.h
#ifndef NLIB_ATOMIC_H
#define NLIB_ATOMIC_H
#include "header.h"
template<typename T>
class AtomicIntegerT
{
public:
AtomicIntegerT()
: m_nValue(0)
{
}
T get()
{
return __sync_val_compare_and_swap(&m_nValue, 0, 0);
}
T getAndAdd(T x... |
Fragrant-Yang/git-test-copy | MuduoServer/Application/lib.h | #ifndef APPLICATION_LIB_H
#define APPLICATION_LIB_H
#include "main.h"
#endif // LIB_H
|
Fragrant-Yang/git-test-copy | MuduoServer/DataStruct/lib.h | #ifndef DATASTRUCT__LIB_H
#define DATASTRUCT__LIB_H
#include "dynarray.h"
#include "dynqueue.h"
#include "fixqueue.h"
#include "doublelist.h"
#include "KeyAllocator.h"
#include "RedBlackTree.h"
#endif // LIB_H
|
Fragrant-Yang/git-test-copy | MyMuduo/Lib/TimerId.h | #ifndef LIB_TIMERID_H
#define LIB_TIMERID_H
#include "CallBacks.h"
class Timer;
// 标识一个定时器
class TimerId
{
public:
TimerId()
: m_pTimer(NULL),
m_nSequence(0)
{
}
TimerId(Timer* timer, int64_t seq)
: m_pTimer(timer),
m_nSequence(seq)
{
}
... |
Fragrant-Yang/git-test-copy | MuduoClient/MuduoApp/muduoclient.h | <filename>MuduoClient/MuduoApp/muduoclient.h
// Author : XuBenHao
// Version : 1.0.0
// Mail : <EMAIL>
// Copyright : XuBenHao 2020 - 2030
//
#ifndef MUDUO_APP_MUDUOCLIENT_H
#define MUDUO_APP_MUDUOCLIENT_H
#include "header.h"
#include "codec.h"
class Message
{
public:
Message()
{
m_bDirection = true;
... |
lxkain/multi-isoreg | mir/mir_c.h | double isotonic_regression(double const* const, double const* const, unsigned, int);
|
lxkain/multi-isoreg | mir/mir_c.c | #include "mir_c.h"
double isotonic_regression(double const* const inp, double const* const out, unsigned n, int direction) {
unsigned j, k, i;
char pooled;
double const* pinp;
double* pout;
double err = 0;
if (n > 1) {
pinp = inp;
pout = out;
for (i = 0; i < n; i++)
... |
ranjak/opengl-sample | src/config.c | <gh_stars>0
#include "config.h"
#include "log.h"
#include "controls.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
static char* configFileName = "config.cfg";
static int ConfigLog = 0;
Eg_configSection Sections[1];
int sectionCount = 1;
static bool init = false;
static int readEntries(Eg_configSect... |
ranjak/opengl-sample | src/main.c | #include "scene.h"
#include "config.h"
int main(int argc, char* argv[])
{
eg_loadConfig();
Scene* scene = scene_create("Ma scène", 600, 600);
if(scene == NULL)
{
fprintf(stderr, "Erreur : impossible de créer la scène.\n");
return 1;
}
printf("Version : %s\n", glGetString(GL_VERSION));
//boucle ppale
scene... |
ranjak/opengl-sample | src/log.c | <gh_stars>0
#include "log.h"
#include <stdio.h>
#include <stdlib.h>
/*Liste des logs ouverts*/
typedef struct log {
FILE* lf;
struct log* next;
}logList;
static logList *logs = NULL,
**nextLog = &logs;
/*Nombre de logs ouverts*/
static int logCount = 0;
int eg_createLog(char* name)
{
logList* newLog = mal... |
ranjak/opengl-sample | include/lexutil.h | #ifndef LEXUTIL_H
#define LEXUTIL_H
#include <stdbool.h>
#define EG_MAX_IDENT_LG 48
/*
* Analyseur lexical, conçu pour l'analyse de fichiers de configuration.
* Cet analyseur travaille sur un fichier à la fois, son but est d'être
* utilisé par d'autres modules qui se chargeront de l'analyse syntaxique.
*/
/********... |
ranjak/opengl-sample | include/log.h | #ifndef LOG_H
#define LOG_H
#include <stddef.h>
#include <stdarg.h>
/*
Gestion des logs et des erreurs du moteur
*/
/* Ouverture d'un fichier de log en écriture.
PARAM : nom du fichier.
RETOURNE : un numéro de log >= 1. 0 si erreur.
*/
int eg_createLog(char[]);
/* Ecrire dans le log spécifié.
PARAMS: n° de log
... |
ranjak/opengl-sample | src/scene.c | #include "scene.h"
#include "log.h"
#include "renderer.h"
#include "controls.h"
#include <math.h>
//Calcule les FPS et les affiche dans la console
//le void* est un pointeur vers une scène.
static Uint32 updateFps(Uint32, void*);
//MAJ de la scène (déplacement de l'objet). Prend la durée d'une frame en secondes.
stat... |
ranjak/opengl-sample | src/lexutil.c | <gh_stars>0
#include "lexutil.h"
#include "log.h"
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <float.h>
#include <math.h>
//Définition des variables externes
char lex_CurrentChar = EOF;
int lex_LineCount = 0;
int lex_EtatOK = 0;
static int anaLog = 0;
static FILE* filePtr =... |
ranjak/opengl-sample | src/controls.c | <reponame>ranjak/opengl-sample
#include "controls.h"
static bool cfg_readKey(Eg_cfgEntry* entry);
static const char* cfg_keyToStr(Eg_cfgEntry* entry);
//sert à stocker le résultat de keyToStr. Est remplacé à chaque appel de la fonction.
static char* tempStr = NULL;
/*
* Liste des valeurs associées aux actions
* Vale... |
ranjak/opengl-sample | include/scene.h | <reponame>ranjak/opengl-sample
#ifndef SCENEOPENGL_H
#define SCENEOPENGL_H
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
//#define GL_GLEXT_PROTOTYPES
//#include <GL/glcorearb.h>
#include <GL/glew.h>
#include "SDL.h"
#include "mathutil.h"
#define SCENE_MAX_TITLE_LG 50
/*Structure de scène : contient un... |
ranjak/opengl-sample | include/mathutil.h | <filename>include/mathutil.h
#ifndef MATHUTIL_H
#define MATHUTIL_H
#include <stddef.h>
#include <stdbool.h>
#define PI 3.14159265
/*Utilitaires de calcul pour maths analytiques (fonctions)*/
/*
* Vecteur à 3 composantes flottantes
*/
typedef struct Vec3
{
float x, y, z;
} Vec3;
typedef struct Vec4
{
float v[4];
... |
ranjak/opengl-sample | include/renderer.h | #ifndef RENDERER_H
#define RENDERER_H
#include "scene.h"
/*
Définit le programme de rendu, ses étapes, spécifie les éléments à dessiner.
*/
/*
* crée le programme de rendu.
* PARAM: scène sur laquelle le renderer opère
* RETOURNE: 0 si succès, -1 si échec
*/
int eg_initRenderer(Scene*);
/*
* efface et redessine la s... |
ranjak/opengl-sample | include/controls.h | <gh_stars>0
#ifndef CONTROLS_H
#define CONTROLS_H
#include "SDL.h"
#include "config.h"
/*Controles au clavier/souris ou autres.
* Liste des actions possibles.
* Gère le chargement des bindings et leur valeur par défaut.
*/
/*
* Liste des actions devant être affectées à une touche.
* EG_KEY_NOACTION est toujours à la... |
ranjak/opengl-sample | src/renderer.c | #include "renderer.h"
#include "log.h"
#include "mathutil.h"
/*
* Structure définissant un vertex :
* Coordonnées X, Y, Z, W
* Couleur R, G, B, A
*/
typedef struct
{
GLfloat XYZW[4];
GLfloat RGBA[4];
} Vertex;
static Scene* target;
static int renderLog;
static GLuint VAO,
VBO,
IBO,
vtxShader,
fragShader,
... |
ranjak/opengl-sample | include/config.h | #ifndef CONFIG_H
#define CONFIG_H
#include "SDL.h"
#include <stdio.h>
#include "lexutil.h"
//longueur maximale d'un indentificateur, en comptant le \0
#define EG_MAX_IDENT_LG 48
/*
*Fichier de configuration
*Format :
*[Section]
*paramètre=valeur
*/
/*typedef enum Eg_Type
{
EG_CHAR,
EG_STRING,
EG_INT,
EG_FLOAT,
... |
ranjak/opengl-sample | src/mathutil.c | <reponame>ranjak/opengl-sample<filename>src/mathutil.c
#include "mathutil.h"
#include <math.h>
#include <stdio.h>
const Mat4 ZeroMat4 = {{0., 0., 0., 0.,
0., 0., 0., 0.,
0., 0., 0., 0.,
0., 0., 0., 0.}};
const Mat4 IdMat4 = { { 1., 0., 0., 0.,
0., 1., 0., 0.,
0., 0., 1., 0.,
0., 0., 0., 1.}};
Ma... |
CJBuchel/UDP_TransferNT | UDP_TransferNT/include/Network.h | <reponame>CJBuchel/UDP_TransferNT<gh_stars>0
#ifndef NETWORK_H
#define NETWORK_H
#include "Serializer.h"
#include "Socket.h"
namespace UDP_TransferNT {
class Network : public Serializer {
public:
/**
* Network Type
*/
enum class Type {
SERVER = 0,
CLIENT
};
/**
* Connection type
* Meant... |
CJBuchel/UDP_TransferNT | UDP_TransferNT/include/nt_headers.h | #ifndef NT_HEADERS_H
#define NT_HEADERS_H
#include "nt_platform.h"
#include <string>
#include <iostream>
#include <typeinfo>
#ifdef DISABLE_NT_LOGGER
#define DEFAULT_NT_LOGGER(x)
#else
// override if you have a proper logger. E.g spdlog
#ifndef DEFAULT_NT_LOGGER
#define DEFAULT_NT_LOGGER(x) std::cout << x << std:... |
CJBuchel/UDP_TransferNT | UDP_TransferNT/include/UDP_TransferNT.h | <filename>UDP_TransferNT/include/UDP_TransferNT.h
#ifndef UDP_TRANSFER_NT_H
#define UDP_TRANSFER_NT_H
#include "Network.h"
#endif |
CJBuchel/UDP_TransferNT | UDP_TransferNT/include/Socket.h | #ifndef SOCKET_H
#define SOCKET_H
#include "nt_headers.h"
namespace UDP_TransferNT {
/**
* Cross platform socket wrapper. Used as main socket for network.
*/
class Socket {
public:
/**
* Set the port of the socket
*/
void setPort(int port) {
_port = port;
}
/**
* Set the ip of the socke... |
CJBuchel/UDP_TransferNT | UDP_TransferNT/include/nt_platform.h | #ifndef NT_PLATFORM_H
#define NT_PLATFORM_H
#ifdef _WIN32
#define NT_UDP_PLATFORM_WINDOWS
#elif defined(__linux__)
#define NT_UDP_PLATFORM_LINUX
#elif defined (__APPLE__) || defined(__MACH__)
#include <TargetConditionals.h>
#if TARGET_IPHONE_SIMULATOR == 1
#error "IOS simulator is not supported!"
#elif TARGE... |
CJBuchel/UDP_TransferNT | UDP_TransferNT/include/Serializer.h | #ifndef SERIALIZER_H
#define SERIALIZER_H
#include "nt_headers.h"
#include "Datapacket.h"
namespace UDP_TransferNT {
class Serializer {
public:
/**
* Serial cycler. Serialize data type arrays [T] into byte stream [V]
*/
template <typename T, typename V>
static T *serialCycler(T *singleDT, V *data, boo... |
CJBuchel/UDP_TransferNT | UDP_TransferNT/include/Datapacket.h | #ifndef DATAPACKET_H
#define DATAPACKET_H
#include "nt_headers.h"
#define DP_CHECK_SCOPE(x, v, code) if (x > (DATAPACKET_TYPESIZE)/sizeof(v)) { DEFAULT_NT_LOGGER("INDEX OUT OF SCOPE, index: " + std::to_string(x) + ", max index: " + std::to_string((DATAPACKET_TYPESIZE)/sizeof(v))); } else { code }
namespace UDP_Tran... |
jj1bdx/exs64 | c-example/xorshift64star.c | /* Written in 2014 by <NAME> (<EMAIL>)
To the extent possible under law, the author has dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.
See <http://creativecommons.org/publicdomain/zero/1.0/>. */
#include ... |
jj1bdx/exs64 | c-example/test.c | /*
* test sequence generator for xorshift64star.c
* Written by <NAME>
* License: CC0 / public domain
* NOTE: use C99 or later
*/
#include <stdio.h>
#include <stdint.h>
#include <inttypes.h>
uint64_t next(void);
extern uint64_t x;
int main(void)
{
int i;
x = (uint64_t)1234567890123456789ULL;
for (... |
AIoT-IST/EVA_Show-Case | src/plugins/weardetection/gstweardetection.h | #ifndef _GST_weardetection_H_
#define _GST_weardetection_H_
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include <opencv2/opencv.hpp>
G_BEGIN_DECLS
#define GST_TYPE_weardetection (gst_weardetection_get_type())
#define GST_weardetection(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_wearde... |
AIoT-IST/EVA_Show-Case | src/plugins/geofence/gstgeofencebase.h | <filename>src/plugins/geofence/gstgeofencebase.h
#ifndef _GST_GEOFENCEBASE_H_
#define _GST_GEOFENCEBASE_H_
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include <opencv2/opencv.hpp>
G_BEGIN_DECLS
#define GST_TYPE_GEOFENCEBASE (gst_geofencebase_get_type())
#define GST_GEOFENCEBASE(obj) (G_TY... |
AIoT-IST/EVA_Show-Case | src/plugins/geofence/gstgeofencefoot.h | #ifndef _GST_GEOFENCEFOOT_H_
#define _GST_GEOFENCEFOOT_H_
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include <opencv2/opencv.hpp>
G_BEGIN_DECLS
#define GST_TYPE_GEOFENCEFOOT (gst_geofencefoot_get_type())
#define GST_GEOFENCEFOOT(obj) (G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_GEOFENCEFOO... |
AIoT-IST/EVA_Show-Case | src/plugins/assembly/gstpartassembly.h | #ifndef _GST_PARTASSEMBLY_H_
#define _GST_PARTASSEMBLY_H_
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include "assembly_utils/Status.h"
using namespace BASIC_INFORMATION;
using namespace PROGRESS;
using namespace PREPARE;
G_BEGIN_DECLS
#define GST_TYPE_PARTASSEMBLY (gst_partassembly_get_ty... |
AIoT-IST/EVA_Show-Case | src/plugins/assembly/assembly_utils/Status.h | <reponame>AIoT-IST/EVA_Show-Case
#ifndef __DEMO_STATUS_H__
#define __DEMO_STATUS_H__
#include <vector>
#include <opencv2/opencv.hpp>
namespace BASIC_INFORMATION
{
class BOM
{
public:
BOM(std::vector<std::string> nameVector, std::vector<int> NumberVector, std::vector<int> OrderVector);
~BOM... |
AIoT-IST/EVA_Show-Case | src/utils/utils.h |
std::vector<std::string> split(std::string inputString);
GstAdBatchMeta* gst_buffer_get_ad_batch_meta(GstBuffer* buffer);
std::string return_current_time_and_date();
std::string round2String(double d, int r);
|
AIoT-IST/EVA_Show-Case | src/plugins/assembly/gstpartpreparation.h | #ifndef _GST_PARTPREPARATION_H_
#define _GST_PARTPREPARATION_H_
#include <gst/video/video.h>
#include <gst/video/gstvideofilter.h>
#include "assembly_utils/Status.h"
using namespace BASIC_INFORMATION;
using namespace PROGRESS;
using namespace PREPARE;
G_BEGIN_DECLS
#define GST_TYPE_PARTPREPARATION (gst_partprepar... |
systems-nuts/popcorn-compiler-with-modified-stackmaps | lib/musl-1.1.18/include/arch.h | /**
* Defines architectures used by multiple components in tools & supporting libraries.
*
* Author: <NAME> <<EMAIL>>
* Date: 12/12/2017
*/
#ifndef _ARCH_H
#define _ARCH_H
enum arch {
ARCH_UNKNOWN = -1,
ARCH_AARCH64,
ARCH_X86_64,
ARCH_POWERPC64,
NUM_ARCHES
};
#endif /* _ARCH_H */
|
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/Common/OMIdentityContext.h | <gh_stars>10-100
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMObject.h"
/**
* The IdentityContext class provides mechanism to collect Device specific
* claims, which can be sent to OIC during authent... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2Library/IDMMobileSDKv2Library.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import "OMMobileSecurityService.h"
#import "OMMobileSecurityConfiguration.h"
#import "OMCredential.h"
#import "OMCredentialStore.h"
#import "OMCertInfo.h"... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/Common/OMTimer/NSTimer+OMTimes.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
// Got this from: http://stackoverflow.com/questions/347219/how-can-i-programmatically-pause-an-nstimer
#import <Foundation/Foundation.h>
@interface NSTimer (OMTimes)
@property (nonatomic, readonly) ... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMOAMOAuthClientAssertionService.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMAuthenticationService.h"
#import "OMOAMOAuthConfiguration.h"
@interface OMOAMOAuthClientAssertionService : OMAuthenticationService
@property (nonatomic, wea... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/Common/NSData+OMBase32.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
void *OMBase32Decode(const char *inputBuffer,
size_t length,
size_t *outputLen... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMLogoutService.h | <gh_stars>10-100
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMMobileSecurityService.h"
#import "OMAuthenticationManager.h"
#import "OMAuthenticationService.h"
#import "OMCredentialStore.h"
@interface O... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/SecureStorage/OMUtilities.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@interface OMUtilities : NSObject
+ (NSString *)keystoreDirectoryName;
+ (NSString *)localAuthDirectoryName;
+ (NSString *)omaDirectoryPath;
+ (NSString *)secureDirec... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMWKWebViewCookieHandler.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import <WebKit/WebKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface OMWKWebViewCookieHandler : NSObject
+ (void)cookiesForVisitedHosts:(NSArray*)visitedHosts completionHand... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/KeyManager/OMKeyStore.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@class OMKeyStore;
@interface OMKeyStore : NSObject
- (id)initWithKeyStoreId:(NSString *)storeId kek:(NSData*)kek;
- ... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/LocalAuthentication/OMTouchIDAuthenticator.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import "OMAuthenticator.h"
typedef void (^OMFallbackAuthenticationCompletionBlock)(BOOL authenticated);
__attribute__ ((deprecated))
__deprecated_msg("... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMOpenIDCConfiguration.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMOAuthConfiguration.h"
typedef void (^OIDCDiscoveryCallback)(NSError *_Nullable discoveryError);
@interface OMOpenIDCConfiguration :OMOAuthConfiguration
@... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMOpenIDCAuthenticationService.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMOAuthAuthenticationService.h"
typedef void (^OMOpenIDCUserInfoCallback)(NSMutableDictionary *_Nullable useri... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/CredentialStoreService/OMCredentialStore.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@class OMCredential,OMAuthenticationContext;
@interface OMCredentialStore : NSObject
{
@private
CFTypeRef defaultK... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMMobileSecurityConfiguration.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMDefinitions.h"
@interface OMMobileSecurityConfiguration : NSObject
@property (nonatomic) int idleTimeout;
@property (nonatomic) int sessionTimeout;
@proper... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/JailBroken/OMJailBrokenDetector.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@interface OMJailBrokenDetector : NSObject
+ (BOOL)isDeviceJailBroken;
@end
|
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMOAuthConfiguration.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMMobileSecurityConfiguration.h"
#import "OMObject.h"
enum{
OMOAuthResourceOwner,
OMOAuthAuthorizationC... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMConnectionHandler.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@interface OMConnectionHandler : NSObject<NSURLSessionDataDelegate,
NSURLSessionDataDelegate>
@property (nonatomic, strong)... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMClientCertAuthenticationService.h | <gh_stars>10-100
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMAuthenticationService.h"
@class OMAuthenticationService,OMClientCertConfiguration;
@interface OMClientCertAuthenticationService :
... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMOAuthAuthenticationService.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMAuthenticationService.h"
#import "OMOAuthConfiguration.h"
@class OMAuthorizationGrant;
@interface OMOAuthAuthenticationService : OMAuthenticationService {
... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/LocalAuthentication/OMPinAuthenticator.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import "OMAuthenticator.h"
@class OMSecureStorage, OMKeyStore;
@interface OMPinAuthenticator : OMAuthenticator
@end
|
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/LocalAuthentication/OMBiometricAuthenticator.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import <LocalAuthentication/LocalAuthentication.h>
#import "OMAuthenticator.h"
NS_ASSUME_NONNULL_BEGIN
typedef void (^OMFallbackAuthenticationCompletionBlock)(BOOL a... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/Common/OMCryptoService.h | <filename>src/ios/sdk/IDMMobileSDKv2/Common/OMCryptoService.h
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
/*!
@enum OMCryptoAlgorithm
@discussion Hashing and symmetric key encryption algorithms supported
by OMCryptoService.
@constant ... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/Common/OMTimer/OMTimer.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@class OMTimer;
@class OMTimeEvent;
typedef void (^OMTimerCompletionBlock)(OMTimer *timeline);
@interface OMTimer : NSObject
{
NSTimer *_... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMAuthenticationService.h | <gh_stars>10-100
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMMobileSecurityService.h"
#import "OMAuthenticationRequest.h"
#import "OMAuthenticationDelegate.h"
#import "OMAuthenticationChallenge.h"
@cl... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/Common/OMClientCertChallangeHandler.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@interface OMClientCertChallangeHandler : NSObject
+ (OMClientCertChallangeHandler*)sharedHandler;
- (void)doServerTrustForAuthenticationChallenge:(NSURLAuthenticati... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/LocalAuthentication/OMAuthenticator.h | <reponame>x-and/cordova-plugin-oracle-idm-auth
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@class OMKeyStore,OMAuthData,OMSecureStorage;
typedef enum : NSUInteger
{
OMAuthenticationPolicyPin
} OMAuthentica... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMAuthenticationChallenge.h | <filename>src/ios/sdk/IDMMobileSDKv2/OMAuthenticationChallenge.h
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
enum
{
OMChallengeUsernamePassword,
OMChallengeClientCert,
OMChallengeServerTrust,
O... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/Common/OMTimer/OMTimeEvent.h | <gh_stars>10-100
/**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@class OMTimer;
@class OMTimeEvent;
typedef void (^timeEventBlock)(OMTimeEvent *event, OMTimer *timer);
@interface OMTimeEvent : NSObject
@property... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMAuthenticationRequest.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMObject.h"
@interface OMAuthenticationRequest : NSObject
@property(nonatomic) OMConnectivityMode connectivityMode;
@property (nonatomic, strong) NSString *id... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMAuthenticationManager.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
#import "OMMobileSecurityConfiguration.h"
#import "OMAuthenticationService.h"
#import "OMAuthenticationDelegate.h"
@class OMMobileSecurityService;
@interface OMAuthent... |
x-and/cordova-plugin-oracle-idm-auth | src/ios/sdk/IDMMobileSDKv2/OMToken.h | /**
* Copyright (c) 2017, Oracle and/or its affiliates.
* The Universal Permissive License (UPL), Version 1.0
*/
#import <Foundation/Foundation.h>
@interface OMToken : NSObject<NSCoding,NSCopying>
{
@protected
NSString *_tokenName;
NSSet *_tokenScopes;
NSString *_tokenValue;
NSDate *_sessionExpiry... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.