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
cmake_minimum_required(VERSION 3.2) | |
project(stream) | |
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=c99") | |
set(TOPDIR "${CMAKE_CURRENT_SOURCE_DIR}\\..\\..") | |
set(LIBRARY_OUTPUT_PATH "${TOPDIR}\\NT\\common\\stream") | |
set(EXECUTALE_OUTPUT_PATH "${TOPDIR}\\NT\\common\\stream") | |
file(MAKE_DIRECTORY ${LIBRARY_OUTPUT_PATH}) |
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
!IFDEF HAVE_PCRE | |
# This is the location of the PCRE library | |
!IFNDEF LIBPCRE | |
LIBPCRE = $(THIRDPARTY)\pcre3 | |
!ENDIF | |
pcre_LIBS = "$(LIBPCRE)\lib\pcre$(DEBUGLIB).lib" "$(LIBPCRE)\lib\pcreposix$(DEBUGLIB).lib" | |
pcre_CFLAGS = -DHAVE_LIBPCRE "-I$(LIBPCRE)\include" | |
!ENDIF |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Web; | |
using System.Net; | |
using System.IO; | |
namespace DistantVacantGovUz | |
{ | |
public class NetHttpRequests : IHttpRequests |
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
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
using System.Web; | |
using System.Net; | |
using System.IO; | |
namespace DistantVacantGovUz | |
{ | |
public class NetHttpRequests : IHttpRequests |
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
public byte[] GetBytesEx(string requestUrl, RequestMethod requestMethod = RequestMethod.GET, string requestData = "") | |
{ | |
WebClient client = new WebClient(); | |
if (proxy != null) | |
{ | |
client.Proxy = proxy; | |
} | |
client.Headers[HttpRequestHeader.Cookie] = cookies.GetCookieHeader(new Uri(requestUrl)); |
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
public byte[] GetBytes(string requestUrl, RequestMethod requestMethod = RequestMethod.GET, string requestData = "") | |
{ | |
HttpWebRequest request = null; | |
try | |
{ | |
request = (HttpWebRequest)WebRequest.Create(requestUrl); | |
} | |
catch (Exception ex) | |
{ |
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
at System.Net.WebClient.UploadDataInternal(Uri address, String method, Byte[] data, WebRequest& request) | |
at System.Net.WebClient.UploadData(Uri address, String method, Byte[] data) | |
at System.Net.WebClient.UploadData(String address, String method, Byte[] data) | |
at DistantVacantGovUz.NetHttpRequests.GetBytesEx(String requestUrl, RequestMethod requestMethod, String requestData) in D:\git\DistantVacantGovUz\DistantVacantGovUz\NetHttpRequests.cs:line 184 |
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
using System; | |
using System.Collections.Generic; | |
using System.ComponentModel; | |
using System.Data; | |
using System.Drawing; | |
//using System.Linq; | |
using System.Text; | |
using System.Windows.Forms; | |
//using System.Data.OracleClient; | |
using Oracle.ManagedDataAccess.Client; |
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
import java.util.Scanner; | |
import java.io.FileOutputStream; | |
import java.io.FileWriter; | |
import java.io.IOException; | |
import java.io.OutputStreamWriter; | |
import java.sql.Connection; | |
import java.sql.DriverManager; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.sql.Statement; |
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
private string [] getFilteredFiles(string [] fileNameFilters) | |
{ | |
if (fileNameFilters != null && fileNameFilters.Length > 0) | |
{ | |
List<string> fileNameList = new List<string>(); | |
foreach (string filter in fileNameFilters) | |
{ | |
string [] files = System.IO.Directory.GetFiles(Environment.SpecialFolder.Desktop.ToString(), filter); |
OlderNewer