tcpclient Questions
4
Solved
Hello and thanks for your help.
This time I would like to ask about TcpClient.
I have a server program and I am writing a client program.
This client uses TcpClient. It starts by creating a new cl...
3
Solved
I have implemented a socket client using TcpClient class. So I can send and receive data, everything works good. But I ask some of the guru's out there :) Is there something wrong with my implement...
Hatchet asked 18/1, 2017 at 11:32
11
Solved
I have a TcpClient which I use to send data to a listener on a remote computer. The remote computer will sometimes be on and sometimes off. Because of this, the TcpClient will fail to connect often...
Pathway asked 14/6, 2013 at 23:19
21
Solved
In C# to use a TcpClient or generally to connect to a socket how can I first check if a certain port is free on my machine?
more info:
This is the code I use:
TcpClient c;
//I want to check here ...
21
I am trying to setup the ms-sql server in my linux by following the documentation
https://learn.microsoft.com/pl-pl/sql/linux/quickstart-install-connect-ubuntu?view=sql-server-2017
The SQL server...
Greiner asked 30/7, 2019 at 6:54
10
Solved
I'm playing around with the TcpClient and I'm trying to figure out how to make the Connected property say false when a connection is dropped.
I tried doing
NetworkStream ns = client.GetStream();
...
Horwitz asked 7/9, 2009 at 3:41
3
Solved
I have two simple applications:
A Server application that waits on a specific tcp port for a client to connect. Then listens to what he says, send back some feedback and DISCONNECT that client.
A...
Barnaba asked 25/2, 2013 at 12:30
8
Solved
So, it would seem that a blocking Read() can return before it is done receiving all of the data being sent to it. In turn we wrap the Read() with a loop that is controlled by the DataAvailable valu...
Shotwell asked 23/11, 2010 at 21:56
4
What would be the proper way to cancel TcpClient ReadAsync operation by timeout and catch this timeout event in .NET 4.5?
TcpClient.ReadTimeout seems to be applied to the sync Read only.
UPDATE:
Tr...
Alluvium asked 7/3, 2013 at 14:29
7
Solved
I am trying to develop a client server TCP/IP application. I have a server running on my PC and the client app is running on the mobile. They both are in the same Wi-Fi network, but I cannot establ...
2
Solved
TcpClient.NoDelay docs state:
Gets or sets a value that disables a delay when send or receive buffers are not full.
However, it's not clear whether this only applies to data written after it's se...
8
Solved
I am trying to read all data present in the buffer of the Machine connected through TCP/IP but i don't know why i am not getting all data ,some data is getting Missed.
Here is the code that i am us...
Littoral asked 26/9, 2014 at 11:34
2
Solved
I have the following code, which is self explanatory:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect(host, port)
s.send("some data")
# don't close socket just yet...
# do some ot...
Hiphuggers asked 29/12, 2017 at 15:21
1
Solved
I am using NetworkStream with TcpClient.
First I setup my tcp client:
tcp = new TcpClient(AddressFamily.InterNetwork)
{ NoDelay = true, ReceiveTimeout = 5000};
My main data-receiving loop:
...
0
My console prints this randomly multiple times, where do i begin looking where the issue originates? The app works fine apart from this print appearing?
tcp_input [C5.1:3] flags=[R.] seq=293410233...
1
I've been asked to convert a bash script which uses nc -z, to PowerShell.
This site tells me that nc -z tests whether a port is open "without connecting to it". Is there some way to do that using ...
Fledgling asked 10/10, 2019 at 9:49
4
Solved
I am using TcpClient to listen on a port for requests. When the requests come in from the client I want to know the client ip making the request.
I've tried:
Console.WriteLine(tcpClient.Client.Re...
2
Solved
I have an asyncio TCP server that take messages from client, do stuff() on server and sends texts back. Server works well in the sense that receives and sends data correctly. Problem is that I can'...
Wive asked 6/10, 2016 at 17:2
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
1
I had great difficulties to connect Flutter app to my network tcp socket on server. I know I have to use some sort intermediate option so translate data between tcp socket to flutter and Flutter to...
6
I have a vb.net application that opens a socket and listens on it.
I need to communicate via this socket to that application using a javascript running on a browser. That is i need to send some d...
Decillion asked 13/9, 2012 at 13:47
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
0
I want to make two android application that communicate each other using tcp in the same device itself .
Say when a user from Android A app. clicks a button it must bring Android app B to the fron...
4
I am trying to connect (through TCP) to the server running on my machine from the Android device.
I have android.permission.INTERNET in my manifest file:
<uses-permission android:name="android....
1 Next >
© 2022 - 2025 — McMap. All rights reserved.