Netcat listening and transfering - transfer

I used to transfer files with netcat, but my windows pc and iphone does not respond to listening right now. It seems its about pc,
Just a nc -nvlp 4545 doesn't even work, but sometimes file transfer from pc to iphone works, but not the other way. What to do about it?

Related

c++ tcp socket speed changes

Here's something I can't understand. I developed a C++ video streaming Windows app. When streaming multiple video streams between 2 PCs on a local network, I get some latency and frame drops. However, if I add a TeamViewer connection between the 2 machines, there is no more latency and frame drops.
The opposite would be logical, right? What I'm I doing wrong?
For me, it looks like there is some buffering on the connection. Adding a Teamviewer connection seems to force a "push" of the data on the network.
I tried with a VNC connection instead of TeamViewer, but the latency and frame drops remains.
My streamer can use TCP or UDP. I only get the lag with TCP, not with UDP.

Receiving an UDP Packet from Arduino in a CrossbarServer in Python

I'm new using WAMP protocol and CrossbarIO servers that are based on the WAMP protocol. The problem is. I have and Arduino Uno + EthernetShield and I want to send the information to the CrossbarServer.
The Arduino Uno has not support for Autobahn or WAMP or Crossbar. I just can send normal packages via UDP and websocket with an UNO+Ethernet.
Is there someway that I can read this UDP packet in the CrossbarServer from the arduino?
Unfortunately you cannot do so directly at the moment. For the time being, you need to connect the Uno to some component which accepts messages from the Uno and can talk WAMP as well.
We are working on a C library for lower-end devices, but as far as I can tell (I'm not directly involved) something with the specs of the Uno will remain out of the scope of WAMP even then since the initial plan is that the library itself will consume about 8k of RAM.

Android to Windows tcp-communication delay

I have developed an android client application and a windows c++ server application which communicate with tcp/ip in a local network.
The data exchange works well on my laptop (win 8, connected to the network with wifi).
On my second pc (win 7) the incoming messages are collected and forwarded in a bunch of about 20 messages to my application. As a consequence I only get about two times per second updates of the current sensor data (on the laptop ~30 times per second).
Both computers and the android phone are in the same local network. There are no other devices in the network and it is not connected to the internet. I already tried a wifi connection and a lan connection for the second pc without noticeable differences.
I assume that any windows 7 setting is responsible for this behavior.
You are using nagling which batches small sends for 200ms. Disable it, but make sure to send big chunks at a time. Each send call immediately goes on the network now.

TCP streams on iOS don't show up on a wireless network

I am trying to send and receive TCP streams from an iPad via a wireless connection to a laptop. I create sockets with boost::asio. This project is a port of a data streaming library that I maintain that works quite well on Windows, OSX, and Linux.
I can get the app to send and receive streams to/from other computers on a wired LAN when I run it on the simulator. But, when I target the device itself, I can't see any streams.
As I say, I am communicating via wireless between an iPad and a laptop. I create a wireless network on the laptop and then give the iPad a static IP. The connection appears to be fine, because I can ping the iPad with no packet loss. I have also tried connecting the devices by putting them on the same wireless LAN (although I'm not supposed to use wireless routers at work) and this also does not work.
According to apple, setting up streams like this with NSStream will just work. Maybe there is some permissions magic happening under the hood that I am not doing with my calls to boost::asio functions. In any case, I can't see the streams.
Actually, it turns out the only thing that was wrong was that I needed to set up my routing table so that it pointed multicast to the wireless card:
> sudo route -nv add -net 224.0.0.183 -interface en1
I got the IP from inspecting packets in wireshark -- it is the address that my device is multicasting to in my laptop. Sending works (from device to laptop), receiving is still silent though. This may be something else that needs to be set int the routing table (I really don't understand much at all about multicasting) or else I can fiddle with some config settings with my library.

How to detect serial port disconnected in linux guest running on vmware player?

It seems to me that when running a linux guest on vmware player, if you disconnect the serial port there is no signal or interrupt. Similarly for connecting. Can anyone confirm this is true or perhaps it is a limitation of the driver I am using (https://github.com/voodootikigod/node-serialport)?
i noticed that when i plugin modem, dmesg showed me that it was detected. maybe you can follow what dmesg shows and find solution, good luck.