.NET Framework class, providing client connections for TCP network services.
Questions tagged [tcpclient]
2318 questions
0
votes
0 answers
Delphi TidTcpClient byte array
How to receive byte array by client?
Old versions had ReadBuffer().
But berlin 10.1 has not this function. So how can i do this?
My code:
var buf:tidbytes;
begin
…
artemk
- 121
- 1
- 11
0
votes
1 answer
Continuous communication between server and client
I am working on a program that works as a server and client. What I am trying to do is have the client display a message with whether or not it is connected to the server. I figured the best way to do this was every second have the client send an…
xjacksssss
- 47
- 8
0
votes
0 answers
DotNet Socket SetSocketOption No Operation
I've been struggling to find a way to adding some TCP Option Headers. What I meant by Options are these part of bytes in the image link below from 20th Octets and so on.
Tcp Options in Header
So I've been creating a TcpClient basically, let's say…
user2778340
0
votes
0 answers
TcpClient Error - Thread was being aborted
In my ASP.NET(VB) project, I am facing error to get XML response from remote server using TcpClient. The error is Thread was being aborted. The code in which I am facing error is given as follows.
Private Function GetCMSAPIXMLResp(ByVal strReqXml As…
Rahul More
- 615
- 3
- 13
- 40
0
votes
1 answer
Why is the buffer smaller when receiving than from what I am sending?
I am currently trying to send a buffer from my client to my server, the buffer I am trying to send is the byte array from a image on my PC.
It says that the size is roughly 200k bytes when sending but I only receives 61k, doesn't matter what picture…
TheHappyGuy
- 35
- 5
0
votes
0 answers
Using TcpClient with VPN connection
I'm writing a proprietary Telnet class and use TcpClient. Everything works well in the console and data transmission generates no issue with devices (sockets) in the same IP group. I tested also a new WPF project using this class again and the…
Mr. Knackwurst
- 11
- 4
0
votes
0 answers
Qt - Sending a large amount of data via QDataStream TCP
I want to benchmark a TCP Connection to an ECU (Transferrate)
For that, i want so send some Data. The amout of data can be set in my GUI from x KB to x GB.
The transferSize is calculated from the values set in the GUI. Buffer Size is 1024:
#define…
Chris Nelson
- 29
- 6
0
votes
2 answers
Should I close the tcp connection?
I have a Java printing application, it prints ticket to a network printer using raw TCP sockets. This application is a REST listener, when it receive a command, it prints using one single connection to a single ethernet thermal printer.
This is my…
Tobia
- 8,015
- 24
- 90
- 182
0
votes
1 answer
Understanding Server Protocol
(I am specifically using VB.net, the protocol I am referring to is for a "Minecraft Server")
I have the following link for details on the protocol for a server I'm making.
Protocol
Now, according to this protocol, the first three bytes should…
Freesnöw
- 25,654
- 28
- 83
- 131
0
votes
0 answers
Python Serwer and Android Client communication
Hi I creating simple comminication serwer in Python 2.7, my first goal is to send "list" to android App with sockets.
import socket
import sys
HOST = '192.168.0.108' # this is your localhost
PORT = 8888
list=str(["firstitem",'nextitem'])
s =…
kowal666
- 61
- 8
0
votes
0 answers
How to add textalign and timestamp to a chat
I'm learning to code and I'm currently making a server and a client with two-way communication. Is there a way to make the received message appear on the left side of the textbox and the sent message on the right side of the textbox just like in a…
EricC
- 1
- 1
0
votes
1 answer
TCP chat- The connect function in client not working
I was trying to create a TCP server-client chat program in c++ language but in client side connection the connect function isn't working and my connection is getting terminated.I have tried setsockopt method as well as changing the port number but…
0
votes
3 answers
C# client server application, BinaryReader throws an exception
I've got task to make a server application, which checks if any file on the server (which name must be sent by the client) exists and if it exists to give back a response (message - "This file exists."). I've got problem with this. The server is…
user551761
0
votes
0 answers
Could the tcpclient in tornado can keep a long-connection?
I do a tcpserver, which should use the tcpclient in server-client to connect a anthor server.
I need the connect ,from server to anthor server keep a long connection.
Now I use like below:
tcp_client_two = TCPClient()
stream = yield…
bigpangl
- 190
- 1
- 14
0
votes
0 answers
.NET TcpClient disconnects while Python stays connected
I have .NET client/server applications that communicate with a line protocol using TcpClient and an SSLStream. Basically they exchange some information and then enter a heartbeat loop where the client periodically sends a message to the server and…
Jens
- 6,030
- 2
- 20
- 47