Comments (18)
You are correct. Packet Sender's built-in TCP server closes the connection after a few seconds. Persistent connections is currently only supported using Packet Sender as a client.
from packetsender.
Thanks for the quick reply.
Any chance of enhancing the server to maintain a persistent TCP connection?
If not, any pointer to which standalone TCP server for Linux does that (I could not find any)?
from packetsender.
I do not know of any.
What is your timeline? It's been on my to-do for a while. I could make a special branch if you don't mind an ugly UI. The problem I couldn't nicely solve was a rogue device making a bunch of connections which caused a bunch of connections pop-ups. I then shelved the idea because I ran out of time. After all, this is an unpaid volunteer effort by me.
from packetsender.
I found this one
http://sockettest.sourceforge.net/
https://github.com/akshath/SocketTest
which is written in Java, hence cross-platform. It maintains a persistent connection, but cannot be configured to respond automatically (only manually) and does not seem to have been updated in a while.
I don't mind if the server does not have any UI, let alone an ugly one. For me, personally, more important is performance because I'll be using it for testing from a Java NIO client which is capable of quickly sending many messages using the same socket. Also, valuable to me is the ability to configure an automatic response from the server, e.g. echoing back the last received message.
As for a timeline, I don't dare to request anything. If and when you have the time. This server might be useful for development and testing in a home network automation/entertainment environment where a mobile client controls remote devices over sockets in near real-time, among other scenarios.
Thank you for your effort, appreciated.
from packetsender.
If you are still looking for this feature, I made a pre-release version here: https://github.com/dannagle/PacketSender/releases/tag/v5.0-alpha
It will eventually get formally released for all platforms.
from packetsender.
this is now fully released.
from packetsender.
Tested to maintain a permanent connection by default. Don't see a way to turn this off/on, but not needed for my purposes. Thanks!
from packetsender.
Hi Dan,
Can you please let me know whether PacketSender closes the UDP connection after sending the response?
I am developing a client prototype, UDP, connection oriented, with a blocking recv call, but it never recieves the reply that is sent by PacketSender (and which is visible on Wireshark).
Could it be that PacketSender has closed the connection gracefully, so that recv is returning 0?
Many thanks for your assistance and insights.
from packetsender.
UDP is connectionless. There is not a connection to close. Packet Sender's UDP socket is always listening. You can turn on responses on 2 Packet Senders, and they will happily UDP reply back and forth to each other until the app dies from using too much RAM. Turn off logging to have it go on forever.
If you are referring to TCP, Packet Sender replies back once and closes the connection. Turn on persistent TCP, and then Packet Sender will reply and leave the connection open. It still only replies once. Replies with persistent TCP enabled is a bit buggy.
from packetsender.
from packetsender.
Mmmh. In V5.6.2 it seems to be closing the TCP socket connection after every command again. Can you confirm?
Thanks!
from packetsender.
- Client (outgoing) or server (incoming) connections?
- Are you using installed or portable?
I've not seen this problem. However, Qt did change their socket libraries on me again. I had to do a fair bit of rework.
from packetsender.
from packetsender.
I got a fresh copy. It's working for me. Is persistent TCP checkbox is checked?
I used a Linux VM to telnet to portable Packet Sender's TCP server address. Sent data. Saw it appear. Then left it open a while.
from packetsender.
from packetsender.
Same here.
Hi Dan, I tried with persistent TCP enabled but it did not change anything related to the mentioned behavior. Do a have to use it to keep the connection open? I send commands by another computer and each command starts with STX and ends with ETX, e.g. \02_AKON K0\03 Then I use the smart replies inside your tool. The first command after opening the socket connection receives the correct response. The 2nd command however, finds a closed socket connection. At least that’s what I think it is. Our tool then reopens the connections after reaching a timeout. Thanks and best regards, Lars
…
Am 17.04.2018 um 03:17 schrieb Dan Nagle @.***>: I got a fresh copy. It's working for me. Is persistent TCP checkbox is checked? I used a Linux VM to telnet to portable Packet Sender's TCP server address. Sent data. Saw it appear. Then left it open a while. — You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
from packetsender.
Hi, does the GUI only work on windows?
from packetsender.
All the features of Packet Sender runs on Windows, Mac, and Linux.
from packetsender.
Related Issues (20)
- [IDEA] Send multiple packets in a single command HOT 1
- Need date of packet display in grid HOT 2
- [IDEA] HOT 1
- [IDEA] Export panels missing
- [BUG] --starterpanel sometimes launches in edit mode HOT 2
- Some elements of the UI are overly scaled on a 4K screen with scaling set at 175% HOT 7
- [BUG] Stop button does not work on Intense Packet Generator tool HOT 7
- [IDEA]Resend a packet a limited number of times HOT 1
- [BUG] The version is always shown as 8.0.6 HOT 2
- [BUG] HOT 3
- [IDEA] Partial match support for smart responses HOT 3
- [BUG] 0 and 1 Length ACK UDP packets not showing up in log HOT 3
- [BUG] The app cannot be turned on. HOT 2
- [IDEA] More encodings HOT 2
- [IDEA] Proxy mode (with logging) HOT 1
- Put/patch/delete HTTP commands HOT 1
- [BUG] Log not updated after day change when resending messages HOT 4
- [BUG] Crash on macOS big sur HOT 11
- [BUG] Cannot use command line tool HOT 2
- [BUG]Starter Panel from Command Line HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from packetsender.