Questions tagged [ttcpserver]

8 questions
3
votes
2 answers

Can't send text(string) from ttcpserver to ttcpclientserver

I have 2 forms, 1 for server another for client. After dropping ttcpserver on server form and setting its localhost property to 127.0.0.1 and localport property to 55555 and Active property to true I wrote a button1(sendtextbutton) onclick event…
Omair Iqbal
  • 1,820
  • 1
  • 28
  • 41
2
votes
1 answer

ShowModal on onAccept of TTCPServer causes the application to hang?

I'm programing one network application in delphi 6 using TTCPServer. At OnAccept event of this component I call showmodal for another form. This cause to hang the main form. I think that it is because of threads but I do not know how to showmodal…
hamid
  • 852
  • 11
  • 27
1
vote
0 answers

TTcpServer "stopped" in Linux

The two console applications include one socket server using TTcpServer of bmThreadBlocking mode, and one socket client using TTcpClient of bmBlocking mode. The TTcpClient is intended to connect to the server, send a line, and then disconnect. The…
SOUser
  • 3,802
  • 5
  • 33
  • 63
1
vote
1 answer

tcpserver x tcpclient problems on run stress test

I need help with a TCPServer and TcpClient problem. I am using Delphi XE2 and Indy 10.5. I made server and client programs based on a popular screen capture program: ScreenThief - stealing screen shots over the Network My client program sends a .zip…
Claudio Ferreira
  • 171
  • 2
  • 12
1
vote
1 answer

Global state in multithreaded server

i'm implementing simple http server and i want my responses depend on some global state. For example if i get request 'get_settings' from the same client for the first time i will send large settings json, and for the second time i will just send…
Alexander
  • 779
  • 8
  • 17
0
votes
1 answer

How do I transfer a buffer? TTCpServer/TTcpClient

I'm writing a program to send a file from one PC to another. I'm trying to send it using a char* buffer, but I'm having some problems. I think it sends the buffer, but the result is a file with a size of 0 kilobytes. I suspect I'm not writing the…
0
votes
1 answer

Delphi: TTcpServer, connection reset when reading

I'm trying to implement a Fitnesse Slim server for delphi, but have some problems with the communication. Fitnesse will start my process, and give me a portnumber as a commandline argument. Then I'm supposed to create a socket at the given…
Vegar
  • 12,828
  • 16
  • 85
  • 151
0
votes
1 answer

TCP connection sends data only one way does not receive

I have fought enough with this: I am trying to write a TCP client code and this code has to send a data to a server and and get a response. The client code is as follows:
user1051505
  • 952
  • 3
  • 22
  • 37