Trending Sockets Discussions

Follow

Ask the Community


Ask any professional question and get answers from other specialists.

Stream language
Feras Abualrub's image
Question added by Feras Abualrub Web Solutions Manager Qistas for Information Technology
9 years ago
Answers:
2
Followers:
Views:
90
Vote Count:
0
Answer should contain a minimum of 25 characters.
fazal kareem's image
Question added by fazal kareem internee Oil and Gas Development Company Limited
9 years ago
Answers:
1
Followers:
Views:
267
Vote Count:
0
Answer should contain a minimum of 25 characters.
Atif Majid's image
Question added by Atif Majid Senior PHP Programer/Team Lead RedApple Apartments AB
9 years ago

How do you compare CURL and Socket programming in PHP? What are the pros and cons of both? And why do you prefer one over the other?‎

I was just wondering that we may be able to achieve the same thing using both of these methods i.e. CURL or Socket. Has anybody tried to compare these two on performance,‎ ... See More

Answers:
2
Followers:
Views:
2210
Vote Count:
0
Answer should contain a minimum of 25 characters.
Majid Hameed's image  
Answer added by  Majid Hameed, Senior Java Developer, Check24 Vergleichsportal GmbH
9 years ago

* Socket performs better as compared to Curl. * Usage wise Curl is better as compared to Socket. * If you want to connect to machines over internet on different non stand ... See More

Paarhati Ozkasgarli's image  
Answer added by  Paarhati Ozkasgarli, Consultant, Al Emadi Enterprises
9 years ago

It is depends on what kind of data you want to transfer using UDP or TCP Socket. UDP is a open protocol. Every information or data go through UDP does not wrapped and doe ... See More

Muhammad Majid Saleem's image  
Answer added by  Muhammad Majid Saleem, Senior PHP Developer / Project Manager, SwaamTech
9 years ago

I believe, both have their own advantages and disadvantages over each other. But I would suggest to user cURL.   I would recommend, you are better off using cURL because: ... See More

Muhammad Ahsan Javed's image  
Answer added by  Muhammad Ahsan Javed, System and Network Administrator, Lahore School of Economics
8 years ago

UDP is a low-overhead transmission and connectionless protocol.  TCP is a high-reliability data transmission and connection oriented protocol. So TCP used for more sensit ... See More

Waqas Ali's image  
Answer added by  Waqas Ali, Principal Network Engineer, TRG (The Resource Group)
9 years ago

netstat is the tool which can show your p2p connections and port opened.