Questions tagged [tcpserver]

A tcp server uses raw tcp sockets to communicate with its client (usually without using a higher level protocol such as HTTP or IMAP).

A TCP server is a server that uses raw tcp sockets for the connection. All HTTP Servers are tcp servers in the end but usually you don't call them tcp servers because they work on a higher level protocol: HTTP.

680 questions
4
votes
4 answers

How to track number of clients with Indy TIdTCPServer

I want to know the number of current client connections to an Indy 9 TIdTCPServer (on Delphi 2007) I can't seem to find a property that gives this. I've tried incrementing/decrementing a counter on the server OnConnect/OnDisconnect events, but the…
Roddy
  • 66,617
  • 42
  • 165
  • 277
4
votes
0 answers

Spring Boot - Oracle TCPS connection using thin driver

I need some advice on setting up tcps connection to oracle 12c database in springboot application I have the following configuration in application…
Yakiv
  • 623
  • 2
  • 8
  • 19
4
votes
1 answer

What is the difference between TTcpClient/TTcpServer and TClientSocket/TServerSocket?

Could someone please explain their differences? Are they same and work the same way? Which one is better than the other components?
ThN
  • 3,235
  • 3
  • 57
  • 115
4
votes
3 answers

Ruby TCPServer sockets

Maybe I've gotten my sockets programming way mixed up, but shouldn't something like this work? srv = TCPServer.open(3333) client = srv.accept data = "" while (tmp = client.recv(10)) data += tmp end I've tried pretty much every other method of…
Markus Orrelly
  • 1,669
  • 2
  • 12
  • 9
4
votes
1 answer

How to stop TCPServer OnExecute event from infinite execution after AContext.Connection.Disconnect?

I have this TCPServerExecute event that I want to stop from executing after I manually disconnect the connection with the client : procedure TMainForm.TCPServerExecute(AContext: TIdContext); var TCPClient : TIdTCPClient; begin try TCPClient :=…
Viktor Anastasov
  • 1,093
  • 3
  • 17
  • 33
4
votes
2 answers

How to test a TCP server implementation?

I have written a TCP server implementation using which I created an application which works as TCP echo service. Now I want to test this echo server in terms of How many connections it can handle What is the response time How much memory and CPU it…
Hemant
  • 19,486
  • 24
  • 91
  • 127
4
votes
1 answer

TCP Server Windows 8 XAML Application in C#

I recently developed a TCP Client-Server application using WPF and C# for Windows Desktop. Now, I'm thinking to port it to Windows 8 Metro App. But, it seems that System.Net.Sockets namespace in not present in the SDK for Metro Apps. (So I cannot…
Shrayansh Sharma
  • 217
  • 1
  • 5
  • 16
4
votes
2 answers

Performance of Python HTTPServer and TCPServer

I've spent a few days on and off trying to get some hard statistics on what kind of performance you can expect from using the HTTPServer and/or TCPServer built-in libraries in Python. I was wondering if anyone can give me any idea's as to how…
Damon Swayn
  • 1,326
  • 2
  • 16
  • 36
4
votes
1 answer

C++ socket programming Max size of TCP/IP socket Buffer?

I am using C++ TCP/IP sockets. According to my requirements my client has to connect to a server and read the messages sent by it (that's something really new, isn't it) but... in my application I have to wait for some time (typically 1 - 2 hrs)…
Rampal Chaudhary
  • 707
  • 1
  • 8
  • 18
4
votes
4 answers

Listening for an Ethernet Cable Unplugging Event for a TCP Server Application

I have a C# TCP server application. I detect disconnections of TCP clients when they disconnect from server but how can I detect a cable unplug event? When I unplug the ethernet cable I can't detect the disconnection.
sanchop22
  • 2,729
  • 12
  • 43
  • 66
3
votes
2 answers

Is tcp listener and tcp server same thing in c#?

What is the difference between TCP listener and TCP server? I want to communicate with some devices using TCP/IP protocol and want PC to organize the communication by using C#.
sanchop22
  • 2,729
  • 12
  • 43
  • 66
3
votes
1 answer

Apple IOS application and Delphi TidCmdTcpServer

I have a server process written in Delphi which has been in production for several years. It is using the TidCmdTcpServer to communicate with the client (also written in Delphi and using the TidTcpClient). This server uses has SSL encryption…
Ken Davis
  • 31
  • 1
3
votes
2 answers

How to put tcp server on another thread in python

I try to write a daemon in python. But I have no idea how can I use a thread to start parallel tcp server in this daemon. And even what type of server I should use : asyncore?SocketServer?socket? this is part of my code: import os def demonized(): …
Jazz.Min
  • 55
  • 2
  • 6
3
votes
2 answers

which `sock_fd` to use in `setsockopt` function

My client app uses socket as http connections, meaing one-time send,receive, and close, i considered using a single persistent connection, instead of separate connection, each time, but problem was, sometimes the server received 2 packets of 32 kiB,…
gitman-2021
  • 111
  • 8
3
votes
1 answer

Ruby TCPServer sockets shared between threads

I am currently implementing a simplistic pub/sub system in ruby using only the standard lib, where a client can subscribe to a topic for messages or publish messages to a topic, which will be sent to all subscribers. I'm using just standard…
1 2
3
45 46