tcp streams problem c#
When i try to connnect to a local IP everything goes wonderfully but as soon as i use a normal ip, like to connect to a friend of mine outside the lan it just doesn't work ...
When i try to connnect to a local IP everything goes wonderfully but as soon as i use a normal ip, like to connect to a friend of mine outside the lan it just doesn't work ...
I am doing some experimentation over an unreliable radio network (home brewed) using very rudimentary java socket programming to transfer messages back and forth between the end nodes. The setup is as follows: Node A --- Relay Node --- Node B One problem I am constantly running into is that somehow the connection drops out and neither...
Hi all, As writen in my title, background: I have 2 different type of applications (WPF-silverlight) which can talk each other - Doctor application and Patient application - but it doesn't mean only 2 apps will run, for instance: i can run 3 doctor app and 7 patient app. and all of those apps is communicate using wcf via tcp connection...
Is there a way/tool to list TCP connections flaged as "thin" under Linux ? ...
Hello Everybody, I'm sending messages over TCP/IP and on the other side I parse TCP message.For example this is one of the sent messages. $DKMSG(requestType=REQUEST_LOGIN&requestId=123&username=metdos&password=123)$EDKMSG Clarification: $DKMSG( //Start )$EDKMSG //End requestType //Parameter REQUEST_LOGIN //Parameter Val...
I would like a utility that would allow me to send/receive tcp and udp messages as a client or server, assemble packets, set responses, etc... Preferably on Windows. Please let me know if you've seen anything like this. THANKS! ...
My linux application is performing non-blocking TCP connect syscall and then use epoll_wait to detect three way handshake completion. Sometimes epoll_wait returns with both POLLOUT & POLLERR revents set for the same socket descriptor. I would like to understand what's going on at TCP level. I'm not able to reproduce it on demand. My gue...
Hello How can I try to read data from socket with timeout? I know, select, pselect, poll, has a timeout field, but using of them disables "tcp fast-path" in tcp reno stack. The only idea I have is to use recv(fd, ..., MSG_DONTWAIT) in a loop ...
Can somebody demonstrate how to send an array of bytes over a TCP connection from a sender program to a receiver program in Java. byte[] myByteArray (I'm new to Java programming, and can't seem to find an example of how to do this that shows both ends of the connection (sender and receiver.) If you know of an existing example, maybe y...
Hi, I have a C++ application running on windows xp 32 system sending and receiving short tcp/ip packets. Measuring (accurately) the arrival time I see a quantization of the arrival time to 16 millisecond time units. (Meaning all packets arriving are at (16 )xN milliseconds separated from each other) To avoid packet aggregation I trie...
Hi, I am working on an iPhone game which is depended on a LAMP server. I want to create a "event" based system where the apache server sends an event to the iphone. For this, I am thinking of using "CFStreamCreatePairWithSocketToHost" to connect to port 80 of the apache server. I am able to successfully connect to the server and open...
I have a LAMP server running. External services connect to this server (services running on iPhone). I want, from a php script, to get a list of all the services that have connected to the Apache server... How do I do it? Should I use fsockopen? Any help would be greatly appreciated. ...
So I'm trying to write a simple TCP socket server that broadcasts information to all connected clients. So when a user connects, they get added to the list of clients, and when the stream emits the close event, they get removed from the client list. This works well, except that sometimes I'm sending a message just as a user disconnects...
Hey all, I'm using select() to recv() messages from server, using TCP/IP. When I send() messages from the server, it returns a reasonable number of bytes, saying it's sent successful. And it does get to the client successfully when I use while loop to just recv(). Everything is fine and dandy. while(1) recv() // obviously pseudocode...
Hi all, I'm working on a large file transfer(P2P) in UDP air application. I want to connect client and server using TCP. Can anybody tell me how to connect both both in TCP. Thank you. ...
The Boost.Test documentation and examples don't really seem to contain any non-trivial examples and so far the two tutorials I've found here and here while helpful are both fairly basic. I would like to have a master test suite for the entire project, while maintaining per module suites of unit tests and fixtures that can be run indepen...
Hey SO Doing a some practice questions for exam tomorrow can't figure out this one What is the minimum number of socket port(s) required for a TCP server to connect a TCP client for communication? Surely its just two right? one for the server one for the client, but this seems to obvious. My mates thinks TCP uses two ports at the ser...
Hello! What would be a suitable way to inject a raw TCP packet with Python? For example, I have the payload consisting of hexadecimal numbers and I want to send that sequence of hexadecimal numbers to a network daemon: so that if I choose to send 'abcdef', I see 'abcdef' on the wire too. But not '6162636566' as in the case of: new = soc...
I'm having a code written in C that works on Linux. I want this program to work in windows, Are there any differences that I have to make in the code ? It is a code for Server/Client communication using sockets taken from here : http://www.linuxhowtos.org/C_C++/socket.htm ...
Is there an established way to determine whether the other end of a TCP connection is closed in the asio framework without sending any data? Using Boost.asio for a server process, if the client times out or otherwise disconnects before the server has responded to a request, the server doesn't find this out until it has finished the requ...