Skip to content

Instantly share code, notes, and snippets.

View MagnusTiberius's full-sized avatar
💭
Writing code

Ben Gonzales MagnusTiberius

💭
Writing code
View GitHub Profile
#ifndef _EIP_EVENT_D_H_
#define _EIP_EVENT_D_H_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include "eipeventd.h"
#include <algorithm>
#include <cstdlib>
#include <memory>
#include <string>
#include <vector>
#include <utility>
mkdir src
echo '//#include <confg.h>
#include <stdio.h>
int
main (void)
{
puts("Hello World!");
//puts("This is " PACKAGE_STRING ".");
$HOME/WindRiver/wrlinux-7/wrlinux/configure -–with-rcpl-version=0017 --enable-board=intel-baytrail-64 --enable-kernel=idp --enable-rootfs=idp --enable-addons=wr-idp --enable-bootimage=ext3,hdd --enable-patchresolve=noop --enable-test=no --enable-internet-download=yes --enable-reconfig --with-package=ipset,vim,make,git,iasl,libtool,perl,ruby,subversion,autoconf,automake,curl,iperf,less,gdb,screen,netcat,conntrack-tools,fuse,igmpproxy,libcli,mipv6-daemon-umip,ntfs-3g,ntfsprogs,sshfs-fuse,tftp-hpa,tftp-hpa-server,tcpdump,swig,fuse,sshfs-fuse,perl,perl-modules,perl-module-deprecate,perl-module-sys-syslog,perl-dbg,perl-misc,perl-dev,perl-pod,perl-doc,perl-lib,perl-module-cpan,perl-module-unicore,perl-module-cgi,python-core,openvpn,libubox,ntp --with-template=feature/vlan,feature/recovery,feature/ipsec_vpn,feature/online_updates,feature/bluetooth,feature/pptp_vpn,feature/backports,feature/non-grsec,feature/remote-session,feature/self-hosted,feature/openjdk-bin,feature/target-toolchain,feature/ems-test,feature/kvm
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
String s1 = TAMSLib.PhoneNumber.FormatUSA("5031234567");
String s2 = TAMSLib.PhoneNumber.FormatUSA("1(503)1234567");
String s3 = TAMSLib.PhoneNumber.FormatUSA("5031234567x346354");
String s4 = TAMSLib.PhoneNumber.FormatUSA("1(503)1234567x63456");
[TestClass]
public class UnitTest1
{
[TestMethod]
public void TestMethod1()
{
String s1 = TAMSLib.PhoneNumber.FormatUSA("5031234567");
String s2 = TAMSLib.PhoneNumber.FormatUSA("1(503)1234567");
}
}
DWORD GetFileVersionInfo3(const TCHAR *pszFilePath, std::vector<std::pair<std::wstring, std::wstring>> *lplist)
{
DWORD dwSize = 0;
BYTE *pbVersionInfo = NULL;
VS_FIXEDFILEINFO *pFileInfo = NULL;
UINT puLenFileInfo = 0;
dwSize = GetFileVersionInfoSize(pszFilePath, NULL);
if (dwSize == 0)
{
void func()
{
wsabuf.buf = (char*)GetResponse(&wsabuf.len);
}
byte* GetResponse(ULONG *len)
{
byte *content = NULL;
@MagnusTiberius
MagnusTiberius / testWSABUF1.cpp
Created April 23, 2015 18:15
How To Set WSABUF
void SetBuffer()
{
httpResponse.GetResponse3(&PerIoDataSend->byteBuffer);
PerIoDataSend->DataBuf.buf = (char*)&PerIoDataSend->byteBuffer[0];
PerIoDataSend->DataBuf.len = PerIoDataSend->byteBuffer.size();
}
void HttpResponse::GetResponse3(std::vector<byte> *pvbHeaderContent)
{
DWORD dwThreadId = GetCurrentThreadId();