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
1 answer

Poco::Net::TCPServer - Simple server with 100% cpu usage

i've try to make a simple tcp server with poco. I've use the Poco::Net::TCPServer class, which is a multithreaded server, and technically it works. But one thing is super strange. If i start the server, get one or more incoming connection(s), i got…
Michael Aigner
  • 4,820
  • 4
  • 21
  • 33
2
votes
5 answers

How you pass path from client to server?

Hello i am trying to make a TCP client/server that i want these things. The client will give the filename or the path of filename of a file. The server will find that file and give these details: permissions,size,owner,group of owner,date…
DarkPain
  • 45
  • 1
  • 8
2
votes
1 answer

java.net.BindException: bind failed: EACCES (Permission denied) TCP Server

First of all, I know, there were people having the same problem BUT their fixes does not work for me. So the exception that I get is: java.net.BindException: bind failed: EACCES (Permission denied) on line "serverSocket = new ServerSocket(port);"…
user5389605
2
votes
1 answer

“java.lang.UnsupportedOperationException: Not supported yet.”

I am making a TCP project in java. I want to build a TCP connection in java with serial communication from a microcontroller. I want to do that with Multithreading. But when I run my server and client , and I send a message from my client to my…
2
votes
1 answer

Node JS TCP Server not flushing immediately the data from buffer

I have the following code: // Setting up the TCP: var server = net.createServer(function(socket) { console.log('Android Client connected'); socket.setNoDelay(true); socket.on('data', function(data) { console.log(data.toString()); var json =…
2
votes
1 answer

What is the advantage for using TcpClient & TcpServer over Socket

Two computers have to communicate via TCP/IP to synchronize a certain process flow. What would be the advantage to use the wrapper classes TcpClient & TcpServer over a Socket object? I have programmed it using the first but somehow it seems for me…
Mong Zhu
  • 23,309
  • 10
  • 44
  • 76
2
votes
2 answers

Only one tcp server allowed ESP8266 with Lua

I am working on ESP8266 and i am trying to program with Lua. I tried to create TCP server,but i take an error message name "only one tcp server allowed" when i wrote sample code below. I create a server and I cant close. How can I fix…
ahmd14
  • 61
  • 2
  • 8
2
votes
1 answer

How to send data packets like ACK and ENQ using golang

I am writing an interface to a clinical lab machine, which uses ASTM protocol for communication (http://makecircuits.com/blog/2010-06-25-astm-protocol.html). To start with, I am trying to use golang's TCP Server to receive data. But not able to…
Vijendra
  • 338
  • 3
  • 11
2
votes
3 answers

TCP Server to push data to a Web Browser

I have a TCP server, which is connected to a web page via a Web browser. It is easy to send a request to the TCP server by the web page via the Web Browser, but is there a way that TCP server can push data to the web browser, without waiting for a…
Izza
  • 2,389
  • 8
  • 38
  • 60
2
votes
2 answers

Synchronization in C# networking

I have this simple tcp server class class Server { private TcpListener tcpListener; private Thread listenThread; public Server() { this.tcpListener = new TcpListener(IPAddress.Parse("127.0.0.1"), 3000); …
theTour
  • 23
  • 5
2
votes
1 answer

Read from NetworkStream to delimiter

what is the best way to read from NetworkStream to some delimiter (for example "\n") I have following code: NetworkStream clientStream = tcpClient.GetStream(); var message = new byte[4096]; while (true) { …
Jan Kirchner
  • 25
  • 1
  • 7
2
votes
1 answer

Indy 10 TidTCPServer encoding characters

Indy 10 Sockets . TIdTCPServer component . There is a client program that connects to a server program using sockets. Everything working , there is no trouble in communicating , but I can not send a string with special characters from the server to…
Claudio Ferreira
  • 171
  • 2
  • 12
2
votes
1 answer

Delphi TIdTCPServer processing multiple requests

I'm developing a messaging system in delphi using TidTCPServer and TidTCPClient. First all clients log in with a username and a password. The server searches for the user data in SQL server using ADO components. After that the clients send multiple…
VafaK
  • 514
  • 1
  • 6
  • 22
2
votes
2 answers

Blocking two threads in Windows C++ service

I have a Windows service written in C++ that functions as a TCP server listening for incoming connections. I initialized the server socket and put the accept code in a separate thread. This will accept and process the incoming connections. However,…
Cygnus
  • 3,222
  • 9
  • 35
  • 65
2
votes
1 answer

Get Referrer domain name for non-webserver is possible?

Is it possible to get the client's referrer domain name? I used source: http://www.codeproject.com/Articles/1415/Introduction-to-TCP-client-server-in-C Example codes are below: Server Program use ip: 172.21.5.99 (server1.com, server2.com,…