tcplistener Questions
2
To better understand how the .NET networking part works, I'm going through the reference source of the TcpListener(Documentation, Reference Source) class. What caught my attention is that it owns t...
Cogent asked 12/11, 2015 at 8:30
5
Solved
I want to recieve data from my gps-tracker. It sends data by tcp, so I use xinetd to listen some tcp port and python script to handle data. This is xinetd config:
service gps-gprs
{
disable = no
...
Toxophilite asked 6/9, 2012 at 20:39
5
Solved
I've done a lot of googling but not had much luck with my issues. I am new to network programming and trying to learn, I've attempted to set up a simple server & client that communicate (follow...
Trifling asked 1/2, 2013 at 21:3
5
Solved
As far as I know I can create a server using both TCPListener and Socket, so what is the difference between the two of them?
Socket
private Socket MainSock;
MainSock = new Socket(AddressFamily.In...
Dipterous asked 11/9, 2012 at 2:31
5
Solved
I have an SMTP listener that works well but is only able to receive one connection. My C# code is below and I am running it as a service. My goal is to have it runnign on a server and parsing multi...
Gliadin asked 17/3, 2011 at 13:38
3
Solved
This is my Server App:
public static void Main()
{
try
{
IPAddress ipAddress = IPAddress.Parse("127.0.0.1");
Console.WriteLine("Starting TCP listener...");
TcpListener li...
Scriabin asked 15/10, 2013 at 17:13
2
Solved
Currently I'm doing something like this:
public void StartListening()
{
if (!isListening)
{
Task.Factory.StartNew(ListenForClients);
isListening = true;
}
}
public void StopListening()
{
i...
Mvd asked 3/10, 2011 at 0:13
1
Solved
The issue I'm currently facing is that I'm unable to get my C# program to write the file I want to send in the response (I'm writing the bytes of the file) and have a valid HTTP response, the brows...
Robrobaina asked 14/5, 2019 at 13:47
3
I have both TCP server and a client, Simple TCP server will just receive incoming data and print it and the client will be continuously creating a socket connection and send data to TCP server in a...
Varmint asked 2/3, 2019 at 3:39
3
Solved
The Info
I have been developing a web http server in c# and decided to add a remote console feature. The console can be used from any location and uses a TcpListener (web server) and a TcpClient (...
Follow asked 15/7, 2014 at 20:5
2
Solved
I've been making a server. I am using TcpListener.AcceptTcpClientAsync() in an async method, but I have no idea how to actually make it work. My code right now is:
private static async void Start...
Hola asked 5/3, 2014 at 6:44
2
Solved
I am trying to build a small tcp server/daemon with asp.net core as a web frontend to interact with the server. I have found IHostedService/BackgroundService which seems to provide a low effort alt...
Shelby asked 26/9, 2018 at 19:13
9
Solved
I am currently using TcpListener to address incoming connections, each of which are given a thread for handling the communication and then shutdown that single connection. Code looks as follows:
T...
Furness asked 13/12, 2008 at 16:12
7
Say if I was to get shared, virtual or dedicated hosting, I read somewhere a server/machine can only handle 64,000 TCP connections at one time, is this true? How many could any type of hosting hand...
Interactive asked 15/10, 2009 at 22:22
5
Solved
I've got a server and client set up using TcpListener and TcpClient.
I want to send an object to my server application for processing.
I've discovered the using System.Runtime.Serialization and t...
Shetrit asked 21/10, 2011 at 12:0
3
Solved
I've started to build a tcp server which will be able to accept many clients, and receive simultaneously from all of the clients new data.
Until now, I used IOCP for tcp servers which was pretty e...
Aleuromancy asked 4/10, 2013 at 17:10
2
Solved
I have been thinking about what is the right way of set up a TCP server by using asynchronous programming.
Usually I would spawn a thread per incoming request, but I would like to do the most of t...
Igbo asked 17/2, 2014 at 14:5
2
Solved
I need to search for an IP address with Listening Port to look up for others PC on LAN (try to discovery MySQL server) and get the results IP who has that port listening.
Something similar to this...
Ayakoayala asked 18/5, 2017 at 21:8
1
Solved
I'm learning c# socket programming. So, I decided to make a TCP chat, the basic idea is that A client send data to the server, then the server broadcast it for all the clients online (in this case ...
Silvanus asked 15/4, 2017 at 20:55
0
I'm developing an Socket server using TCPListener running on a Windows Service, .NET Framework 4.6.1, Entity Framework 6.1.3 and C#. As database I'm using SQL Server Enterprise 2012 SP 2.
I'm havi...
Zamudio asked 12/12, 2016 at 8:23
4
Solved
I've got a small C# console app to work as a webserver. It responds well on the NAT with devices in the same network, but when I try to access it in a browser from the external IP i get a 400.
The...
Bonnell asked 4/1, 2015 at 21:49
1
I am developing a console based listening app for my GPS tracker in C#, my GPS tracker is configured to send packets on the server with specific port, where my application runs. Now the thing is ac...
Clio asked 17/8, 2016 at 8:19
1
Solved
I have written an MFC C++ app where my client process does a TCP MyCAsyncSocket::Connect to my server process. The server process responds with an MyCAsyncSocket::OnAccept which then Detaches the s...
Rumba asked 12/8, 2016 at 15:46
1
Solved
I am working with some legacy TCP server code that works with sockets directly as it was written in .NET 2.0 and earlier. The server has a feature to 'stop' and 'start' accepting client connections...
Hunk asked 8/2, 2016 at 22:29
3
Solved
I want to check if api and app are running before running tests on them. I know I can get a list of open ports in CLI using
sudo lsof -iTCP -sTCP:LISTEN -n -P
But I want to write a python script...
Equerry asked 3/9, 2015 at 15:47
1 Next >
© 2022 - 2024 — McMap. All rights reserved.