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
1
vote
0 answers

TCP Socket Servers

Is even possible to start multiple TCP socket server using an list? Maybe a sample would be more useful class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler): #This is my handler. It works great for one server so not including it to…
1
vote
1 answer

How to read data until eof() using BufferdReader in java

Hi I'm facing a little problem with eof() I created a tcp connection between a client and a server to send text to the server and receive it back in capital letters but the problem is that it's reading one line only so I would like to modify the…
brah79
  • 37
  • 5
1
vote
0 answers

How can I write my code in a way that the client can send another data to the server? (POS TCP server is in Java, client is NodeJS)

I am having trouble analyzing my code. I am creating a POS application with TCP implementation. This POS does not have a database and only reads from a text file. The Server is written in java and the Client is in NodeJS. I want to be able to send…
1
vote
0 answers

Golang TCP server - GC issue

I have a TCP server which receives responds hex encoded messages. This works fine with lower traffic. It can handle 100, 200 messages per second. I face GC (garbage collection) issue at higher traffic and scripts stops responding and recovers after…
Anil
  • 11
  • 1
1
vote
1 answer

C++ client socket sends original file and file size, Java client always get 8 bytes more. Even after force limiting to -8 bytes file is unreadable

For a while, I am troubled with this issue. Using a snippet of C++ code, which I found here, and in my opinion should do a good job actually sending exact amount of data, I guess the problem is in the Java code or something unknown. Also, when…
RadoRadTs
  • 15
  • 3
1
vote
0 answers

How to make an ssl https server with ruby

I am trying to make an ssl https server with ruby. I already have server code that works fine over http that can parse requests, send back formatted data, etc. I would like to be able to read a key from a file (like what I would get from ZeroSSL or…
Matthias Lee
  • 89
  • 2
  • 7
1
vote
1 answer

Parse HTTP request MATLAB TCPSERVER

Hi Is it possible to parse HTTP get/post requests using tcpserver in MATLAB? I followed this link but it seems it's not possible. Does anyone know what can be done in this case? When I send a Http request, I see the string data being recieved by the…
Ajx
  • 53
  • 1
  • 5
1
vote
2 answers

TCP Stream read POST file in Edge or Chrome browsers

I modified a mini server with "use std::net::TcpListener; use std::net::TcpStream;" from the Rust Book example (https://doc.rust-lang.org/book/ch20-03-graceful-shutdown-and-cleanup.html). This code works from Firefox browser common "form" sending a…
navetix
  • 25
  • 4
1
vote
0 answers

c++ winsock tcp server and client connection with the internet

I have a question and I hope someone can help me. I have a simple TCP chat programmed with Winsock. Unfortunately, it still works only local at the moment. I would like to have it on the Internet, so I can chat with friends just for fun. Now I have…
1
vote
0 answers

TcpListener locked until TcpStream is closed. How to handle connection on new thread and avoid blocking?

EDIT: It is now solved, the problem was some kind of strange behaviour in Windows with the way I was using to connect to the server. Sorry :( I am trying to write a simple TCP server in which each connection is processed in a new thread. The…
Alberto Segura
  • 437
  • 4
  • 9
1
vote
0 answers

Android TCP server and NVT

I created an Android app, which acts as a TCP server (with TcpServer). It works fine with any byte except with the byte 0xFF. Indeed, I use Docklight as TCP client, and sometimes, for an unknown reason, it skips half the 0xFF. Example: I send 0x10…
TheRaven
  • 11
  • 3
1
vote
1 answer

TCP server is unable to read data from client

I have the following client - side server communicator: public class ServerAdapter { private static final int serverPort = 8888; private static final String host = "localhost"; private Socket clientSocket; private PrintWriter out; …
Aviv Vetaro
  • 363
  • 5
  • 12
1
vote
1 answer

Read data both ways TCPServer Ruby

im new in Ruby and Im trying to set up a TCPServer and a Client, but Im having trouble getting the data from the client to the server because for some reason when the client connects, the connection is freezed inside the while loop. Here is the…
SantiArias
  • 27
  • 4
1
vote
0 answers

How to implement a username, password and file path into TCP server program

Hello I am working on a project called a Remote Backup system. It's a TCP client&sever program written in C language. I was tasked with the server part. Below is my code, how would I probably get the username and password part to implement into the…
1
vote
1 answer

how to display all active connections in TcpServer using poco library

I am trying to work with the poco library. I started with an example tcpserver. I need to display all active connections, but I did not find the required method in the library classes. how can display all active connections?
vvvnickm
  • 13
  • 2