Questions tagged [tclientsocket]

30 questions
5
votes
2 answers

Why are TClientSocket and TServerSocket deprecated and what should I use instead?

I'm just starting to get familiar with Embarcadero RAD Studio 2010 after living a life of Eclipse, Emacs, Visual Studio and notepad :) I'm jumping into quite a large C++ application (500.000 - 1.000.000 lines) that I found made extensive use of…
inquam
  • 12,664
  • 15
  • 61
  • 101
3
votes
3 answers

Delphi — TClientSocket ReceiveText MaxLen?

I've been trying to set the length of the amount of characters you recover from the ReceiveText TClientSocket function and nothing seems to be working. E.g., Receiving the first leftmost character(s) from the recovered data or otherwise data stream.…
user1174509
  • 33
  • 1
  • 5
2
votes
0 answers

Getting viabilityChanged error while integration of Starscream Websocket lib

Please check this below code. Every time I am receiving this case: .viablityChanged I don't know what is this error and why it's coming and how to solve this. I am using the Starscream Websocket lib.
2
votes
0 answers

How send webcam images through socket without need save to file?

Actually i have this code below that is working fine to send webcam images over socket (ClientSocket > ServerSocket), before send, i'm saving the image to file . Then i want know if exists some solution to insert the capture inside of MemoryStream…
2
votes
3 answers

Can multiple ClientSocket Components can be placed on a Form?

I am looking to write a program that will connect to many computers from a single computer. Sort of like "Command Center" where you can monitor all the remote system remotely on a single PC. My plan is to have multiple Client Sockets on a form. They…
ThN
  • 3,235
  • 3
  • 57
  • 115
2
votes
1 answer

Socket with Delphi Android application

I’m doing an Delphi Android application that which will receive the temperature from Arduino, I think do a sockets is a good way for to do this communication, but I’ve no idea how I can do a sockets with Delphi Android application, it’s different…
2
votes
1 answer

C++ application causing Windows Handle leakage using multiple TClientSocket instances

I have come across an apparent handle leakage using the Borland/Embarcadero TClientSocket component. I have an application that creates multiple TThread instances, each of which creates a TClientSocket object dynamically, connects to its target…
mathematician1975
  • 21,161
  • 6
  • 59
  • 101
1
vote
1 answer

PHP client to communicate with Apache Thrift API

I am a PHP developer, working on a site that will be communicating with another server with Apache Thrift API, so I want to know that is there some existing class or some way that I can use to communicate with Thrift API in PHP. I saw example…
Hafiz
  • 4,187
  • 12
  • 58
  • 111
1
vote
0 answers

Web-Sockets to bind to http server or to start new

I've been looking for a detailed answer to this question for some time now, whether to start a new websocket on the server domain, or attach a receiver to the http server that is already running, for example Express with Node.js. I have tried…
Robert-Dan
  • 337
  • 2
  • 4
  • 13
1
vote
2 answers

How can I check data in boost asio socket with timeout

How can I read if there is some data in a buffer of boost::asio::socket? The check should block the execution of the program till a timeout is reached. I found out that it is possible to use the function boost::asio::socket_base::bytes_readable but…
1
vote
3 answers

Is Delphi TClientSocket (still) deprecated?

In the resolution comments for bug report 12266 ("Error on socket connect causes resource leak"), Robert Ehteshamzadeh wrote TClientSocket is deprecated. This report is left open to allow for suggested workarounds. This was for Delphi 6. In…
mjn
  • 36,362
  • 28
  • 176
  • 378
1
vote
1 answer

load image from web site throught TClientSocket

I try to load image from web site throught TClientSocket. I wont to do that with TClinetSocket and no other components like INDY or other. SckServer.Close; SckServer.port:=80; SckServer.Address:='127.0.0.1'; SckServer.Open; procedure…
1
vote
1 answer

How do you handle exceptions when using TServerSocket in blocking mode?

I am writing a C++ application using Embarcadero RAD studio and TServerSocket component in blocking mode. I have overridden the OnGetThread handler for the socket to create a custom class derived from TServerClientThread which overrides the default…
mathematician1975
  • 21,161
  • 6
  • 59
  • 101
1
vote
1 answer

OnConnect event not firing when using TClientSocket inside a TThread on non-blocking mode

I am trying to make use of Borlands TClientSocket component in non-blocking mode inside a multithreaded C++ Windows application. I am creating multiple threads (classes derived from TThread), each of which creates its own TClientSocket object. I…
mathematician1975
  • 21,161
  • 6
  • 59
  • 101
1
vote
2 answers

Delphi socket error

Trying to understood how to use ServerSocket and ClientSocket in Delphi. I made a simple chat programm but after client sends first message this error apperas (it happens during sending - just after server get's the message ) Windows socket error:…
DanilGholtsman
  • 2,354
  • 4
  • 38
  • 69
1
2