networking

Signal strength measurements of Mobile Networks in iOS and/or Android?

Can you get signal strength measurements of Mobile Networks in iOS and/or Android? On developer.apple.com I have found CoreWLANWirelessManager sample code for OSX, that shows how to get measurements for WiFi networks. ...

Is there any iOS implementation of the Bayeux protocol (COMET, server push to client)?

Is there any library with implementation of the Bayeux protocol, for use in iOS (iPhone/iPad) development, for the building Server push technology iPhone client? And what are your suggestion for doing this? ...

how to bind raw socket to specific interface

Hello, My application is running on CentOS 5.5. I'm using raw socket to send data: sd = socket(AF_INET, SOCK_RAW, IPPROTO_RAW); if (sd < 0) { // Error } const int opt_on = 1; rc = setsockopt(m_SocketDescriptor, IPPROTO_IP, IP_HDRINCL, &opt_on, sizeof(opt_on)); if (rc < 0) { close(sd); // Error } struct sockaddr_in sin; memset(&si...

why is window size less than or equal to half the sequence number in SR protocol?

in selective repeat protocol in the window size must be less than or equal to half the size of the sequence number space for SR protocol.why is so?? and how??? ...

How to modify HTTP responses in a different .NET process

I have a standard web server that serve web pages. I want to monitor traffic on port 80, intercept every http responses, and add/inject an additionnal header to them. The process will then act like a proxy between the web server and the client. Could you please give me some pointers? I'm already aware of SharpPCap, but I'm not sure wh...

Retransmitting data from an iOS device that failed to transmit it the first time

From the Getting Started with Game Center doc... Always check for network errors when reporting achievement progress to Game Center. If there was an error, it is important for your app to store any progress updates for later retransmission. This retransmission should occur at the soonest opportunity and without requiring separate user a...

Basic P2P / Port / Security Question

I'm building an app that allows a user to stream a video from their home computer. Where can I find more information about how I can make this stream accessible to users outside of the broadcaster's local network? Let's say I'm broadcasting the video from 192.168.0.1:8080/video.mpg I know that if I setup port forwarding to the broadca...

Testing Network Applications C#

Hi, I'm working on a program that will have several users connected to each other via p2p. I would like to test run my program by opening several instances on one computer and have these instances communicate as though they are on separate machines (i.e: as if it's the real thing). Any idea how to approach this? Thanks, PM ...

Error in code when trying to simulate a hybrid wireless network using more than one base station. Can't i use more than a single base station?

I tried to run a simulation for wired-cum-wireless scenario. It is good when i use a single base station. But, when i use more than one, following error is displayed. --- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) --- _o92: no target for slot 0 _o92 type: Classifier/Port content dump: classifier _o92 0 offset...

Troubles installing OMNet++ Couldn't reserve space for cygwin's heap win32 error 6

How can I solve this? I'm reading the installtion guide at http://omnetpp.org/doc/omnetpp41/InstallGuide.pdf I'm working on Windows XP m.AllocationBase 0x0, m.BaseAddress 0x715A0000, m.RegionSize 0x480000, m.State 0 x10000 C:\omnetpp\msys\bin\sh.exe: *** Couldn't reserve space for cygwin's heap (0x715A 0000 <0xC90000>) in child, Win32 ...

how to share a database to different pc's for a java desktop application?

Hi experts, I am making an application which have to be used in different pc's, and it has to share the same database. I have no idea how to do it. I am using the java as programming language and mysql as database. Please help me to do this task... ...

Does NSFileHandle create the sockets for me?

Does NSFileHandle create the sockets for me? Or must I create them myself and then setup an NSFileHandle to use that socket? ...

gsoap SOAP FAULT: SOAP-ENV:Client End of file or no input: 'Operation interrupted or timed out'

Hi, I am using gsoap and I am getting this message in the server side: SOAP-ENV:Client End of file or no input: 'Operation interrupted or timed out' The sequence of packets in the wireshark is packet1. client > server SYN packet2. server > client SYN ACK packet3. client > server ACK that completes the three way handshake....

Android sending data phone to phone

Can you find the IP address of a freinds phone using their phone number? ...

How to write a .Net UDP Scalable server

Hello StackOverflow! I need to write a very high load UDP server. I'm using .Net. How do I use the Socket class to achieve this? I am familiar with the winsock API, and completion ports, and what i would do there, is to use several threads to accept sockets using a completion port, and also to receive in the same manner. My server nee...

Questions about X-forwarded-for in the presence of Squids and CDNs and Browsers

I am trying to understand what the value of X-forwarded-for really means? By definition, it's value will be of the form: ip1, ip2, .... ipn. The situation I am thinking of is this- I am seeing these XFF values at Squid and requests to squid are coming from a CDN. And the CDN is in-turn requesting content on behalf of a user (browser) M...

how to determinate destination MAC address

My application is running on CentOS 5.5 I need to send raw packets using libpcap API: pcap_inject() or pcap_sendpacket() To the specific IP address How can I determinate MAC address belongs to a specific target? ...

Is it possible to create 2 raids with the PowerEdge RAID Controller (PERC) H700?

Hi I would like to know if it's possible to create 2 raids with the PowerEdge RAID Controller (PERC) H700? I would like to create a raid 1 with 2 SAS HD and a raid 5 with 3 SATA HD. (all HD are of the same size) Thank you in advance! cheers daniel ...

is there any way to change a socket's family after bind? (IPv6-related problem)

I'm trying to retrofit an API to be compatible with IPv4. Basically the API at one stage creates a socket and then calls bind() to open a port for listening. The port is specified by passing a sockaddr returned by getaddrinfo(), specifying the port in the service parameter. Later, the caller has the choice of assigning a multicast gro...

Echo client with over 65% packet losses

Hi! I'm just wondering why my UDP server/client pair is getting 65% packet loss. It's just an echo service that sends (the client) an empty packet when it reaches EOF, and the server resets itself when he gets that empty packet. Not really homework, just frustrated why I can't get it right :( Thanks! ...