Transmission Control Protocol (TCP) is a transport layer protocol that provides a connection-oriented data stream service with guaranteed, in-order delivery.

learn more… | top users | synonyms (1)

0
votes
0answers
18 views

Diagnosing a TCP RST

I'm testing a client/server TCP sockets application using Perl IO::Socket as well as Event::Lib. It's pretty simple: the server listen()s; the client connect()s; the server accept()s and waits to be ...
0
votes
1answer
27 views

TCP socket only receiving 4344 bytes

I'm coding a C# server application which receives a large byte array from an Android client via TCP. The problem is that the Android client is sending 14952 bytes, while the C# can't receive more than ...
0
votes
0answers
6 views

MacOS NKE kext: block established connection?

Is there a way to block/interrupt an existing TCP connection from a NKE (network kernel extension) in Mac OS X? I have a socket filter registered that can prevent outbound/inbound connections from ...
0
votes
2answers
25 views

C Socket client prints out a strange output

I'm trying to send a .txt file to a Linux socket client from a Linux server client (I use the loopback interface). I tried to a send a string, i.e. "OK", and everything worked fine, but when I try to ...
0
votes
1answer
14 views

Java: Reading XML file from a TCP stream without writing it to disk

I would like to send a XML file from a server to client. The XML file has been generated by the XMLEncoder class and contains some persistent objects. The client reads the XML file by using a ...
1
vote
0answers
13 views

Netty server down (Server is running in eclipse debug mode )

My netty server suddently stop accepting TCP connection. It works fine til last night.The server is hosted in remote, it is running in eclipse Version: "Juno Service Release 1" in debug mode.I didn't ...
1
vote
1answer
22 views

AsyncTask. Problems with receiving from Java Server

I want to use AsyncTask for receiving ArrayList's(in this case) from Java server. To be sure, that I received something from server I'm trying to display it with Toast. The Code is following: ...
-2
votes
0answers
19 views

Why is this SCP client so slow? [closed]

I'm testing an SSH client and have found that it's scp functionality is very slow compared to OpenSSH, but only over the internet. Relatively, OpenSSH is more than 100 times faster. On a local network ...
0
votes
0answers
17 views

OpenCV RTP Decoding

Is there any way to read RTP packets (that will be sent from a server over a pre-built tcp connection) and decode them to be able to create a h264 stream to be displayed? The data will be ...
0
votes
1answer
28 views

How would I handle multiple sockets and send data between them in Python 2.7.3?

I am trying to create a server in Python 2.7.3 which sends data to all client connections whenever one client connection sends data to the server. For instance, if client c3 sent "Hello, world!" to ...
1
vote
1answer
52 views

recv() error C/C++ socket programming

I'm writing the CWMP client for TR-069 Server. I'm basing my client's code on this topic (there's also a source code link in the topic) CWMP CPE (Client) implementation I have encountered a weird ...
0
votes
1answer
35 views

how can client retrieve vector list from server?

i have a client application that needs to connect to servers from anywhere so to do this i'm trying to create a master server. this master server saves the other servers ip addresses in a vector. the ...
0
votes
0answers
8 views

c# server stops accepting tcp connections after a while and sends TCP Dup ACK packets

I have a server written in c# running under mono on ubuntu. The daily number of client connections to the server is almost constant. The problem is that after some random time, the server stops ...
0
votes
1answer
48 views

How to allow TCP connections from local host only

I want to be able to get request on a specific port only from localhost (both from 127.0.0.1 and my_local_ip); I tried the following: int localhost = (127 << 24) + 1; // 127.0.0.1 ...
0
votes
0answers
13 views

Can I use ZeroMQ with HAProxy, a software-based load balancer?

HAProxy is a software-based load balancer that supports http and tcp distribution. If I use ZeroMQ with pragmatic multicast enabled (pgm), will the use of HAProxy as an intermediary between zmq peers ...
0
votes
0answers
16 views

TCP communication between console and MFC

I want to implement TCP communication between win32 console application and MFC application, I made console application as client and MFC application as server, but the server cannot accpet the ...
0
votes
1answer
16 views

Do I need to close a socket?

After sending data over a socket with Winsock, you're supposed to close the connection like this: closesocket(ConnectSocket); WSACleanup(); I'm writing an API that sends data over a socket. If I ...
0
votes
0answers
28 views

How can you hold a TCP connection open for multiple send/receive requests?

I have a Windows Service that handles different client requests from clients we have out in the field. It works fine, I have code similar to this on the Server: ...
0
votes
0answers
22 views

How can I make my web server deliver different web pages to my mobile client based on certain criteria?

I am doing this for research purposes, I will embed some info in the tcp options data field and I want my server to read this info and based on it the server should deliver different webpages. My ...
0
votes
1answer
11 views

TCP And Data Validity

I know what TCP implements in-order data transmission,but does it actually validates the data that arrived from A to B is the actual data that was sent from A ? If it does , how exactly does it ...
0
votes
1answer
40 views

Protocol for platform independent socket communication

I'm trying to understand how platform independent socket communication works, because I would like to share socket data between a Java server and some native Unix and Windows clients. Sockets are ...
2
votes
1answer
33 views

how can a server store the client's ip address?

i created a server and client application in tcp using c++. the client just sends a message to the server. in the code the server displays some information about the client in the console: ip address, ...
0
votes
2answers
17 views

Time Gap Between Socket Calls ie. Accept() and recv/send calls

I am implementing a server in which i listen for the client to connect using the accept socket call. After the accept happens and I receive the socket, i wait for around 10-15 seconds before making ...
0
votes
0answers
12 views

Netfilter Queues and TCP Server on INADDR_ANY [closed]

I am trying a basic fundamental of INADDR_ANY in conjunction with libnfq hooks. MACHINE 1 : Client Machine 1) I have a tcp client which will request to a server lets say <192:168.1.101:5123> ...
0
votes
2answers
19 views

Python 3.3 adding header to ascii string

I'm trying to send an ascii command over tcp/ip but python (i think) add a header to he string. if I do a s.send(bytes('RV\n ', 'ascii')) I get an eRV rather than RV when I inspect the command going ...
1
vote
1answer
18 views

Python piping received tcp/udp pcm data from network socket into subprocess (aplay)

I can't for the life of me figure this out.. I'm trying to take data received on a network connection, and then pipe it to a subprocess, which will stream the data to my soundcard via aplay. I've ...
0
votes
0answers
35 views

Sending audio stream over TCP, UnsupportedAudioFileException

I have succeeded with sending and reading text and images data over TCP sockets. But I am unable to sending and reading audio stream data. sample code at server: public class ServerAudio { /** ...
0
votes
2answers
32 views

Connecting to myself through my public IP through TCP

I'm trying to connect to my own machine using my public IP. If I use 127.0.0.1 the connection is successful, but using the public IP results in the following error: "ConnectionRefusedError: [WinError ...
-2
votes
1answer
61 views

I thought TCP sent packets in order? [closed]

I am sending the following in a IRC bot: bot->message("chanserv", "op #channel"); bot->raw("KICK #channel " + this->nick(args[0]) + " :RIPIP"); sleep(2000); // even tried sleepin ...
0
votes
0answers
21 views

convert existing Android UDP (DatagramPacket) code to TCP

I have existing Android code that submits a pre-constructed packet over UDP to a hardware device... however, I now need to convert this code to work over TCP instead in order to be more reliable. ...
0
votes
0answers
40 views

Something wrong with TCP Client in C Language

i have wierd problem to send informations and the data to TCP server. My code was made with C and Objective-C. I send the information and after i send my data in same connection. TCPClient *tcp = ...
0
votes
1answer
15 views

Java Threadpool TCP Server (Port keeps changing!!)

Good Day, I was taking a look at this tutorial to do a TCP Threadpool server. http://tutorials.jenkov.com/java-multithreaded-servers/thread-pooled-server.html It works great for listening/RECEIVING ...
0
votes
2answers
38 views

http request edit for originating IP

I have an website where i wan to show a add w.r.t. city. So in my code i am taking the IP from the request object and calculate the city from MaxMind GeoIP database. Now i wan to test this. can ...
0
votes
0answers
16 views

TCP ports or UDP, Wireshark or TCPDUMP How to capture Data from a open port

TCP ports or UDP, How to capture Data from a open port I found with Netstat -a command? How would I do this with Wireshark or TCPdump? An which one would show the most data from the packets?
1
vote
1answer
29 views

Is it necessary to communicate (or anticipate) Python Socket TCP Buff sizes

I am working on internal phone system software for the office I work for. We are hapily using Twilio to manage our phone tree - but would like to create a better way to monitor incoming calls and ...
0
votes
1answer
25 views

Disable tcp slow start

I am looking for disable tcp slow start mechanism for high-speed network. Currently clients send 100MB flows to random servers with non-blocking 1Gbps link. In my math, the completion time of the ...
1
vote
0answers
23 views

Forbidden socket access attempt Exception when reading from socket from a WebMatrix 3/ASP.NET web page?

I have a WebMatrix 3 (same as ASP.NET) web page that opens a socket to a server process running on an Azure hosted Linux VM that listens on a TCP connection for clients. The Linux VM server process ...
0
votes
1answer
46 views

Java Socket request handling

I'm attempting to write a simple file transfer program using the Java Socket and ServerSocket libraries. I've used these libraries successfully once before, but in this case I seem to have a problem ...
0
votes
0answers
26 views

Nemesis - Inject TCP packet into an existing connection

I'm running Nemesis under Windows. I have a 3rd client program connected to a server using the TCP protocol. Now I want to inject a packet into that existing connection, so it will looks like the real ...
0
votes
3answers
53 views

Simple TCP communication over Wifi too slow (seconds lag)?

I'm trying to control a robot wirelessly through an Arduino (using a X360 controller on a computer), which requires very low latency. I chose Wifi for this reason (and the fact I'll be streaming ...
-1
votes
0answers
18 views

Routing table on QNX [closed]

I've an embedded system running on QNX 6.2.1 (I'll call it QNX boc). The QNX box has two network adaptors. I've configured the the driver. So they appear as en0 and en1. Here are their IP settings ...
-1
votes
0answers
18 views

How to monitor data sent/received by a specific application? [closed]

I have installed an application on my Windows pc and i think its been sending my personal information over the internet to some other pc or server. and this application has trust issues. i have ...
0
votes
0answers
22 views

How to build TCP socket connection between two PC from different LAN

Here is the problem: I'm developing a C/S application, now two PCs are in the same room and the App is running fine. I have to move one PC to another room which is in a different LAN, i got trouble ...
2
votes
1answer
31 views

Mysql connection not released?

Here's the thing: I have an application server, called A, and a DB server, called B. On B(DB), when I run netstat -ntp | grep 'A's IP' | wc -l, I see over 400 TCP connections. And when I ...
1
vote
0answers
14 views

Haproxy close connections to backup hosts when primary comes back

Question Can I get haproxy to close all connections to backup hosts when a primary host becomes available after being down? Context I am using HAproxy to do failover for pubsub. The haproxy ...
0
votes
1answer
32 views

Netty 4.0 channel.id() returns negative integer?

When trying to log the channel ID for debugging purposes: @Override public void channelActive(ChannelHandlerContext ctx) throws Exception { // TODO: Investigate negative id ...
0
votes
1answer
24 views

Sending information between Android phone and PC

I want to send information from the accelerometer on my Android phone to my PC running python 3.3. I'm trying to use TCP sockets but I can't get my head around them in python. I'm using RFO Basic on ...
-1
votes
1answer
37 views

Which OSI Layer handles connection oriented and connection less service? [closed]

Would the correct answer be Transport Layer handles it(ie connection oriented through TCP and connection less through UDP)? or Should the answer to the above question be that it is the protocol ...
1
vote
0answers
30 views

[Solved]Build a tcp packet with libnet get incorrect tcp flags and window size

I followed the synflood.c in "Hacking: the art of exploitation", which build a tcp packet with libnet_build_tcp. if (libnet_build_tcp( libnet_get_prand(LIBNET_PRu16), dest_port, ...
-1
votes
0answers
17 views

how to calculate the maximum data size and amount of overhead [closed]

Suppose that a TCP entity receives a 1.5MB(Mbyte) file from application layer on a PC. Assuming that the physical network connection of the computer is Ethernet, the maximum frame size of Ethernet ...

1 2 3 4 5 127