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
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(); |
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
void func() | |
{ | |
wsabuf.buf = (char*)GetResponse(&wsabuf.len); | |
} | |
byte* GetResponse(ULONG *len) | |
{ | |
byte *content = NULL; |
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
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) | |
{ |
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
[TestClass] | |
public class UnitTest1 | |
{ | |
[TestMethod] | |
public void TestMethod1() | |
{ | |
String s1 = TAMSLib.PhoneNumber.FormatUSA("5031234567"); | |
String s2 = TAMSLib.PhoneNumber.FormatUSA("1(503)1234567"); | |
} | |
} |
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
[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"); |
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
$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 |
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
mkdir src | |
echo '//#include <confg.h> | |
#include <stdio.h> | |
int | |
main (void) | |
{ | |
puts("Hello World!"); | |
//puts("This is " PACKAGE_STRING "."); |
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 "eipeventd.h" | |
#include <algorithm> | |
#include <cstdlib> | |
#include <memory> | |
#include <string> | |
#include <vector> | |
#include <utility> |
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
#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> |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <getopt.h> | |
#include <sys/queue.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <sys/file.h> |
OlderNewer