Ditutup

PHP socket_connect with proxy

I need the socket_connect use a proxy. So the developer need modify this code to use proxy. The connection works only on socket_connect. Don't use socks open or curl.

public function connect()

{

if ($this->isConnected()) {

return true;

}

$socket = socket_create(AF_INET, SOCK_STREAM, SOL_TCP);

if ($socket !== false) {

$result = socket_connect($socket, "e" . rand(1, 32) . (".[login to view URL]"), Constants::PORT);

if ($result === false) {

$socket = false;

}

}

if ($socket !== false) {

socket_set_option($socket, SOL_SOCKET, SO_RCVTIMEO, array("sec" => Constants::TIMEOUT_SEC, "usec" => Constants::TIMEOUT_USEC));

socket_set_option($socket, SOL_SOCKET, SO_SNDTIMEO, array("sec" => Constants::TIMEOUT_SEC, "usec" => Constants::TIMEOUT_USEC));

$this->socket = $socket;

$this->eventManager()->fire("onConnect", array($this->phoneNumber, $this->socket));

$this->logFile("info", "Connected to server");

return true;

}

else {

$this->logFile("error", "Failed to connect server");

$this->eventManager()->fire("onConnectError", array($this->cliente_id, $this->socket));

echo "Failed to connect";

return false;

}

}

Kemahiran: PHP

Lihat lagi: chat php socket, connect proxy vb6 return result webbrowser, flash chat php socket, connect proxy server website using webbrowser control, php class connect gsm modem, php set cookie proxy page, connect proxy vb6, php script connect telnet run commands, connect proxy webbrowser visual basic, webbrowser connect proxy, connect proxy php script, php script connect web proxy, php socket proxy, connect socket using proxy, php socket proxy server, proxy server php socket programming

Tentang Majikan:
( 0 ulasan ) Santa Maria, Brazil

ID Projek: #21262397

20 pekerja bebas membida secara purata $164 untuk pekerjaan ini

webdesign786

HI My Motion: "No Satisfaction, No Payment" We have expertise in Web Design & Development. Please check our client reviews to determine the quality of our work. Let’s discuss in detail and start now? I am confident Lagi

$140 USD dalam 2 hari
(162 Ulasan)
7.5
rexzetsolutions

i can connect socket_connect use a proxy ready to start work from now

$150 USD dalam sehari
(271 Ulasan)
7.2
WebXcellance

Hello there, We have 7 year experience in website design and developments, we are ready to work with you. Please provide more detail about the project, Also see our recent work. [login to view URL] https://vint Lagi

$250 USD dalam 5 hari
(152 Ulasan)
7.0
kyleevert

Dear Client! I am very happy to see your project detail. I think it is just my project. :) As you can see in my profile, (my review: https://www.freelancer.com/u/kyleevert?w=f) I have much experience with your job. I t Lagi

$140 USD dalam 7 hari
(18 Ulasan)
5.9
jinkhan888

I have 5+year professional experienced programmers working on PHP, HTML5, Angular.JS, node.JS, Ruby on Rails, Bootstrap, Wordpress, CSS3, Joomla, Drupal, Photoshop, Magento, RoR and developing social networking, real e Lagi

$30 USD dalam sehari
(77 Ulasan)
5.9
okzhang321

How are you? Thanks for your project suggestion. It's very worthwhile chance for me to let you know my skills and proposal about this project. I have 7+ years highly experience to deliver quality work with Websocket a Lagi

$100 USD dalam sehari
(66 Ulasan)
5.9
SumitRoastedWeb

Hi, I am Sumit, a preferred freelancer with 7 years of experience working on PHP/ Codeigniter/ Laravel/ WordPress/ WooCommerce. As you can see my profile, I have been working in web developer since I began my career Lagi

$600 USD dalam 7 hari
(35 Ulasan)
5.7
Grisha97924

Hi i am iskhakova, PHP expert. i am very interested in your project, and have good experience. Just now, i am feeling confident to give you perfect result in time as you want. May i have chance to work for you? i can i Lagi

$140 USD dalam 7 hari
(29 Ulasan)
5.6
amitbanerjee2812

Dear Hiring Manager, I read your job description and I am confident that I can exceed your expectations. I am a professional programmer on PHP+MySQL+WordPress. Here is few recent work for website development : crm.n Lagi

$200 USD dalam 7 hari
(25 Ulasan)
5.1
ankitbagre2000

Hello, I'm Ankit I'm interesting your project very well I'm good in Website Design,PSD TO HTML HTHML, CSS , JAVASCRIT, JQUERY, AJAX, PHP, Wordpress,Codeigniter,laravel and mysql ,Phonegap expert. I’m quite well ex Lagi

$140 USD dalam 7 hari
(35 Ulasan)
5.0
CODEGASMUK

Hi! I have checked your provided link and details very carefully and I am fully confident that I can develop your project up-to your requirements because I have 7+ year of experience in the web development. I can start Lagi

$210 USD dalam 5 hari
(5 Ulasan)
4.2
garethbill

*** I am PHP EXPERT *** Hi there. I have carefully read your job details and noticed that I am the right one you are looking for. As I am senior web developer, I have mastered both back-end and front-end development. I Lagi

$200 USD dalam 2 hari
(19 Ulasan)
4.8
ninestar801

Hi, I have gone through your requirements and I can do this task. The skills and resources needed for this project are in my genes. I can assure you for a complete professional work in given time [login to view URL] share comp Lagi

$90 USD dalam 7 hari
(15 Ulasan)
3.8
Ecybersolution

Hello There, Yes, we can develop you a website for you according to your requirement. I am happy to inform you that we have already developed several large and complex websites Projects so far and if you want to see Lagi

$50 USD dalam 7 hari
(7 Ulasan)
3.5
superdev1888

Greeting Sir! I have checked your requirement and understand it well. I am a full stack developer with enough experience and skills in Web. I have best experiences in Web Developing such as PHP,CI, Wordpres,Woocomerc Lagi

$140 USD dalam 7 hari
(4 Ulasan)
3.3
NavilPolyakov

⭐Hi.⭐ I have read your job post carefully and I am very interested in your project I am a senior developer and I have rich experience 6+ years in Website Design and development. My skill is: Front End: HTML, CSS, CSS3 Lagi

$100 USD dalam sehari
(3 Ulasan)
2.7
partgreat801

I read your project . I have ever been similar project with your project. I have 8+ years of experience working with web full stack development:(SEO,Angular.js,Ionic Framework,CSS,PHP, DATABASE , Magento, Wordpress, CI Lagi

$140 USD dalam sehari
(2 Ulasan)
2.1
webdroidsolution

Dear Client, Greetings!! We have few queries kindly ping us. Thanks for giving us the opportunity to bid over the requirement. As per your requirement, you would like to develop a Website. We would like to share that Lagi

$189 USD dalam 9 hari
(4 Ulasan)
2.6
ChaoTian0109

Hi, How are you? Hope you are going well! I checked your project carefully, so that i feel very confident in your project because I am talented web developer with 6 years. If you give me all data for the project, I wil Lagi

$140 USD dalam 7 hari
(1 Ulasan)
2.2
SuyashTomar

Hello, As per the requirement and gone through the mentioned points, I am having 5+ years of experience in UI/UX. I am well versed with responsive theme Design, Bootstrap, Angular Js, HTML5, CSS3, JS, jQuery, JavaScri Lagi

$140 USD dalam 7 hari
(0 Ulasan)
0.0