tcpserver Questions

2

I'm trying to learn how to use epoll() for TCP server application, because I'm expecting many connections. I tried checking samples and tutorials, they always recommend using/setting sockets ...
Univocal asked 9/10, 2014 at 2:41

4

I am writing a simple TCP server in python, and am trying to input a timeout. My current code: import socket def connect(): HOST = '' # Symbolic name meaning the local host PORT = 5007 # Arbit...
Mciver asked 24/10, 2013 at 15:49

1

Solved

This had been working fine for me all the while, now all of a sudden I find this change in behaviour with no change in android or my wondows(I haven't updated either) This is how I establish wirele...
Carey asked 16/6, 2021 at 3:17

3

Solved

I have created a simple multi threaded tcp server using python's threding module. This server creates a new thread each time a new client is connected. #!/usr/bin/env python import socket, thread...
Wellbalanced asked 3/7, 2013 at 16:21

4

I have a Windows Universal Application that is supposed to act as a TCP server. m_Listener = new StreamSocketListener(); m_Listener.ConnectionReceived += (s, e) => ProcessRequestAsync(e.Socket...
Clot asked 23/12, 2015 at 3:28

1

Is it possible to create a TCP server using NestJS?? I have a GPS tracker that communicate only with TCP. As NestJS could communicate between microservices with TCP, I thought that maybe NestJS c...
Lengthwise asked 2/3, 2020 at 2:9

1

Solved

I am writing a simple python3 webserver. I have tried various tutorials and all work pretty well. Nevertheless there is a difference that I don't understand. In one tutorial, they use HTTPServer a...
Sclater asked 22/9, 2019 at 1:43

4

Solved

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 detec...
Deadradeadweight asked 24/4, 2012 at 13:26

0

I have created a Xamarin Forms app that implements the code found here to setup an endpoint: https://learn.microsoft.com/en-us/dotnet/framework/network-programming/asynchronous-server-socket-exampl...
Leaseback asked 10/2, 2019 at 23:11

1

I would like to ask you, how it is possible to handle multiple connection threads. I have implemented TCP server in the following way: $endpoint = New-Object System.Net.IPEndPoint ([System.Net.IP...
Marjana asked 13/6, 2017 at 10:17

1

Solved

I have written a basic tcp server factory, server client and a service using twisted. The tcp server acts as the middleware between a django server and an another program (let's call it client prog...
Continuation asked 2/11, 2015 at 11:55

1

Is there a valid reason to not use TcpListener for implementing a high performance/high throughput TCP server instead of SocketAsyncEventArgs? I've already implemented this high performance/high t...
Macintyre asked 3/1, 2015 at 13:23

1

I've written a really simple date server: require 'socket' s = TCPServer.new 3939 while (conn = s.accept) Thread.new(conn) do |c| c.print "Enter your name: " name = c.gets.chomp c.puts "Hi #...
Valona asked 8/12, 2014 at 22:40

1

Solved

I use my PC as a server. The client sends messages like: "PART1:Part2", and the server performs the necessary actions. I use boost's asio for the server code. void start_read() { boost::asio::a...
Enloe asked 6/10, 2014 at 0:29

1

I am kinda stuck for my project & I desperately need help. I need a simple TCP server python code that has features like logging & time stamp which I could use for my Raspberry Pi. Its for ...
Hardecanute asked 20/12, 2013 at 2:19

1

I am writing a simple SocketServer.TCPServer request handler (StreamRequestHandler) that will capture the request, along with the headers and the message body. This is for faking out an HTTP server...
Watersick asked 27/9, 2012 at 16:56

1

Solved

I am trying to write a simplest multithreaded TCP server in C#, which receives the data from multiple clients. Every time a new client is connected, the socket connection is established and the so...
Loftus asked 7/10, 2013 at 9:28

1

I am working on TCP server/client application. My question is: My server application starts a new thread and blocks it until connection is accepted the listenforClient method But how can I mana...
Nolan asked 7/10, 2013 at 6:47

1

Solved

I'm building a server with the ENC28J60 chip and a PIC18F4620. The chip is connected to my PC via ethernet. Currently, I'm trying to set up the TCP connection over which I'll build an HTTP connecti...
Pessa asked 3/5, 2013 at 8:8

1

Solved

I'm working on a project which involves sending data over TCP. Using the ThreadedTCPServer I'm able to do that already. The server thread only needs to read incoming strings of data and set the val...
Ethmoid asked 16/4, 2013 at 18:28

1

Solved

After a lot of searching I thought Indy TCP server would be the best to use on Instant messenger server I am working on. The only issue I am facing right now is broadcasting and forwarding message ...
Upsilon asked 31/12, 2012 at 16:37

1

Solved

I have a 2 part question on reading from sockets and how is it managed on Ruby servers like Unicorn or Mongrel I've learnt that to read from a socket is different from reading a file and that the...
Pinite asked 23/11, 2012 at 17:14

1

Solved

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 ...
Rivy asked 17/10, 2012 at 9:47

3

Solved

I have created a TCP server using Node.js which listens to clients connections. I need to transmit data from TCP server to HTTP server again in Node.js possibly through a Websocket (socket.io). Ho...
Sherlocke asked 15/8, 2012 at 10:44

3

Solved

I try to program a TCPServer with threads (ThreadingMixIn) in Python. The problem is that I can't shut it down properly as I get the socket.error: [Errno 48] Address already in use when I try to ru...
Madame asked 7/3, 2011 at 9:52

© 2022 - 2025 — McMap. All rights reserved.