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
2
votes
2 answers

C# running server on thread using a lot of CPU

I'm trying to write a voting server and client, so you start the program and it displays the voting form and you can vote on various items. For the server part I've got the server running in a separate thread, but it's using a lot of CPU, how do I…
user1911422
  • 43
  • 1
  • 7
2
votes
2 answers

Robust TCP server for Ruby?

Could any one recommend a robust TCP server (like Node.js for JavaScript) for Ruby? I understand that there is a TCPServer class available for Ruby but I need something that is more robust because I don't want to have to write code to deal with…
Bryan
  • 3,220
  • 3
  • 26
  • 31
2
votes
3 answers

TCP Client Side Issue

I am facing a big issue in TCP client application return in c#. Normal case it's working fine but in some case server send simultaneous response to a particular client, so this case all the simultaneous response are received as a single message in…
Hope
  • 1,252
  • 4
  • 17
  • 35
2
votes
1 answer

Getting hostname of a host connecting to a socket

I'm using Apple's TCPServer class to open a socket on listen from incoming connection. Here is the callback that get called when someone connect on the listening socket: static void TCPServerAcceptCallBack(CFSocketRef socket, CFSocketCallBackType…
rmonjo
  • 2,675
  • 5
  • 30
  • 37
1
vote
2 answers

Distributed issues scaling TCP servers on EC2 instances

Using EC2 instances (along with Amazon Auto Scaling and Elastic Load Balancing) I have several instances of a TCP server running in Amazon Web Services. Each EC2 instance has access to a centralized database (running on Amazon RDS). To make this…
Jon Cox
  • 10,622
  • 22
  • 78
  • 123
1
vote
1 answer

Howto- Authenticate encrypted username/password in app.config from client to server.

I have a client, which communicates to a TCP server. I store a username/password in the app.config. I want to encrypt the username/password and also the app.config will be encrypted as per standard method (which I know how to do). I'm assuming i'm…
scope_creep
  • 4,213
  • 11
  • 35
  • 64
1
vote
0 answers

Ruby socket troubles

I'm writing a Minecraft Classic server in Ruby called RMS, and it can currently send a heartbeat to minecraft.net just fine. But the problem is, when a client (in the form of a TCPSocket) connects, it will only respond to TCPSocket#read (so that the…
Jwosty
  • 3,497
  • 2
  • 22
  • 50
1
vote
0 answers

How do I create a tcp server that sends notices to a client when a order is received by a webservice?

I have a web service that processes and stores incoming orders from a webpage. As a static variable of that web service, according to this question I have a server that is supposed to send a very small message to the connected client when such an…
lowerkey
  • 8,105
  • 17
  • 68
  • 102
1
vote
2 answers

Reading/Writing is not working in my TCP code

I have a basic TCP client/server program. I have a method in both the client and the server that reads and writes. It works perfectly the first time I run it, but when it runs again (it's in a loop) it doesn't read anything in. void…
B M
  • 11
  • 2
1
vote
2 answers

Sanding data from a C# TCP server to connected client outside of the listening thread

I am writing a simple Tcp server in Unity and have my Flash application connects to it. I found a great tutorial on threaded Tcp server online, and my flash app connects to it nicely. However, I am not able to send data outside of the listening…
Ghettokon
  • 63
  • 8
1
vote
1 answer

createTcpServer: address already in use Error in initialize(...) : Failed to create server

I'm writing scripts in R. Please do not remove my question as I checked and this is certainly (and unfortunately) one of a kind. I'm a newbie data analyst and I was trifling around with learning how to send emails, and I tried using the blastula…
CataLiNa
  • 11
  • 3
1
vote
1 answer

TCPListener (Server) not getting accept request from Client for all clients before the server instance in ip list, when running in threads

I have 4 EC2 instances and I plan to have a distributed network, so every one will send a data to everyone (including itself). I first read the ip addresses from a file to a variable ip_address_clone. Say the list is like…
Zubayr
  • 457
  • 4
  • 18
1
vote
0 answers

How to do unbuffered timeout read in Rust & tokio? (For telnet server handling)

I want to write a simple telnet server that can handle user key typing without having them press enter. This can be done in Python using the telnetlib3 library with the following code: import asyncio import telnetlib3 from telnetlib3 import…
Hykilpikonna
  • 1,749
  • 2
  • 15
  • 32
1
vote
1 answer

Running Spring Boot application but Jenkins hijacks the port

I am following the IntelliJ "Hello World" Spring Boot tutorial (https://www.youtube.com/watch?v=5kOGdZmpSDI) and when I run the application it sets up the Tomcat server on port 8080, as expected, but when I go to localhost:8080 the Jenkins login…
Chadrak
  • 13
  • 2
1
vote
0 answers

How to send data from server without disturbing client sending continuous data

I have made an python program to receive data send by device to the server and the device send data every 2 second to the server now my question is how to send data from server to client without disturbing client which is sending continuous…
Muhammed
  • 63
  • 1
  • 1
  • 8