Hello,
As per a suggestion on stackoverflow, to compare IPC on a single machine using
a) sockets (TCP) on localhost to localhost
b) using FIFOs
(between Java and C)
To answer (a), I used netcat to gauge transfer speed (91 MBytes/sec)[1]
(b) Q: How can I test FIFO write speed using socat?
My approach(where /tmp/gus is created using...
I'm trying to test for a closed socket that has been gracefully closed by the peer without incurring the latency hit of a double send to induce a SIGPIPE.
One of the assumptions here is that the socket if closed was gracefully closed by the peer immediately after it's last write / send. Actual errors like a premature close are dealt wi...
I have a ethenet access control device that is said to be able to communicate via TCP.
How can i send a pachet by entering the HEX data, since this is what i have from their manual (a standard format for the communication packets sent and received after each command)
Can you please show some example code or links to get started....
s...
I want to do TCP Hole Punching (NAT Traversal) in C#. It can be done with a rendevouzs server if needed. I found http://sharpstunt.codeplex.com/ but can not get this to work. Ideally i need some method which i give a PortNumber (int) as parameter that after a call to this method is available ("Port Forwarded") at the NAT. It would be als...
WCF Binary over TCP option, is it applicable only for Intranet or Internet also?
Is TCP applicable only for Intranet?
...
I want to host a WCF service with TCP Protocol.
I can host the service using IIS or Windows Service.
I need to know what port I need to open for this service for it to be accessible by client?
...
I did a quick search on how to check whether Internet is available or not. Most of them talked about making InterOp calls to wininet.dll.
One of the answers pointed towards System.Net.NetworkInformation namespace. Exploring the namespace I found a class Ping which could be used to pinging to our servers from code, and checking whether s...
I need to come up with clients that can multicast to other clients reliably. That implies I'll be using TCP to connect reliably between clients within a multicast group. Doesn't that come up to n^2 number of connections? That seems a little silly to me. Wouldn't/shouldn't there be a way to more easily multicast with reliability?
EDIT: U...
I'm looking to design an application that will require some deep control over IP packets. Looking over the reference guide on the developers site at Android I see very limited control over packets from java.net:SocketOptions and java.net:DatagramPacket. Specifically I'm looking to control the individual bits within the packet to set TCP ...
I have a defined number of servers that can locally process data in their own way. But after some time I want to synchronize some states that are common on each server. My idea was that establish a TCP connection from each server to the other servers like a mesh network.
My problem is that in what order do I make the connections since ...
Heya,
In my application, i need to monitor all messages sent by syslog.
I've tried with UDP, but after one message, i didn't respond anymore (no error, just no heads up anymore). And setting up a tcp server isn't really the solution either i think.
Can anyone guide me to a solution where i can log messages form syslog with tcp (normall...
I have a requirement to implement an experimental TCP stack on Linux. In essence, I need to override any flow control, congestion control, window size adjustments, etc. I have a layer that sits on top of TCP that adds data to the SYN, SYN|ACK, ACK packets in the handshake. I also need to provide my own packet scheduling for transmissi...
Hi guys, when I am using 'localhost' as the host for MySQL database, sequel pro alert me that I will be using socket. On the other hand, if I use '127.0.0.1', i would be using the ip address and port 3306 to reach the server.
What is the difference?
...
Fiddler is an HTTP proxy that, among other things, allows one to pause outgoing and incoming HTTP packets, modify their contents and continue.
Is there anything similar to this working in lower layers of the OSI model? In particular, I want to be able to pause a TCP ACK packet and later let it continue through the pipeline. *nux or Wi...
On Mac OS X (10.6), if I start a YouTube video download and pull the Ethernet cable for 5 or so seconds, then plug it back in, I get varying results depending on the browser. With Opera and Chrome, after I plug the cable back in the video continues to load. But with Safari and Firefox, it never does.
Using Wireshark to look at the traff...
Hi,
As per my understanding a simple TCP server will be coded as follows.
socket() - bind() - listen() - accept() - read() - write()
The clients will be written as follows.
socket() - bind()(Optional) - connect() - write() - read()
Please note the order difference in read() and write() calls between client and server program.
Is it...
I have a server that connects to multiple clients using TCP/IP connections, using C in Unix. Since it won't have more than 20 connections at a time, I figured I would use a thread per connection/socket. But the problem is writing to the sockets as I'll be sending user prompted msgs to clients. Once each socket is handled by a thread, how...
greetings,
i am writng a socket program using sockets in c# (asynchronous).
the issue is, when a client connects to the server it kinda happens quiet fast. then..
when the first message is sent there is a delay in responding.
this only happens to the very first data being sent over the connection. and boh client and server suffers fr...
Dear all, I need to implement a TCP server in Python which receives some data from a client and then sends this data to another client. I've tried many different implementations but no way to make it run. Any help would be really appreciated.
Below is my code:
import SocketServer
import sys
import threading
buffer_size = 8182
ports = {...
i am using raw sockets to create my own socket. i need to set the tcp_checksum.
i have tried a lot of references but all are not working (i am using wireshark for testing).
could you help me please.
by the way, i read somewhere that if you set tcp_checksum=0. then the hardware will calculate the checksum automatically for you. is this tr...