network-programming

How to receive UDP packets from any ip and any port?

I wanted to use C#'s UdpClient to listen to any incomming UDP packets. I want to receive packets from any IP and any port. I tried the following: UdpClient udpClient = new UdpClient(0); IPEndPoint ep = new IPEndPoint(IPAddress.Any, 0); byte[] data = udpClient.Receive(ref ep); but without success. Does anyone know whats wrong? Thanks...

Scala Remote Actors - Pitfalls

While writing Scala RemoteActor code, I noticed some pitfalls: RemoteActor.classLoader = getClass().getClassLoader() has to be set in order to avoid "java.lang.ClassNotFoundException" link doesn't always work due to "a race condition for which a NetKernel (the facility responsible for forwarding messages remotely) that backs a remote ...

What subject or area can show the relationship between programming and networking?

Hi I am studying Software Engineering, and I have to do a case study of relationships between network and programming, but I don't know anything about networking, I don't know where to start. If anyone could help me out to point me to the right direction, would be great!. Thanks. ...

Freezing Network Stack

I want to send out page requests from a browser window as fast as possible to test website responsiveness but don't have any idea how to do it. On the receiving end is a server that will be getting multiple packets but in order to insure that they are being processed in an FIFO manner I want to send them as close to one another as possi...

Web server on port 80 on iPhone.

Hello, I've been working on a project for awhile and it's got a built-in HTTP server which runs on port 8080. The users are told to access the device via e.g. http://192.168.1.4:8080/ -- works great. Recently I realized that applications CAN use port 80 to remove the need for ":8080", though if I try to set the port to 80 I get a crash ...

How to use CURL(pp) (wrapper)

How can I use Curlpp (or clean CURL)? Now, I'm trying to do few basic actions (for example use POST) and I can't compile my project (now, I am using Windows, mingw, code::blocks). I have added library, my IDE see this library. I heard about problems with curl+mingw+code::block. Solution is using definition #define STDC_HEADRES 1 in cu...

Need help understanding C program to find that machines IP address

I am not getting this assignment about finding the IP address of the machine. I need help understanding the logic of this code. Our college lab uses proxy server; will this code work on a computer without proxy? #include <stdio.h> /* stderr, stdout */ #include <netdb.h> /* hostent struct, gethostbyname() *...

Live monitoring of network connectivity status

Hi! A new client has recently asked me to develop a Windows service that will monitor whether or not his server has internet connectivity. The service should log when the connection goes down to Local Only and back up to Internet Access as shown in Network and Sharing Center. My original idea was to have the service ping a website like...

Bluetooth library for Windows

hi. Where can I find the bluetooth API details for Windows Xp, dlls etc for PAN connection etc. Thanks and Regards, Anjali ...

Asynchronous IO with CFWriteStream

Hi everyone, I'm using CFWriteStreamScheduleWithRunLoop and CFWriteStreamWrite to do asynchronous IO. Here's the question: it seems that only one CFWriteStreamWrite call is safe (free of blocking) per each kCFStreamEventCanAcceptBytes notification, because from the second call, we can't guarantee that the socket is ready to accept more ...

Asynchronous IO with CFReadStream

Hi, This is a sibling question of Asynchronous IO with CFWriteStream. I'm using CFReadStreamScheduleWithRunLoop and CFReadSteamRead to do asynchronous IO. How can we safely retrieve all the date with blocking? Let's say the actual size of a message was 1200 (but we don't know), and the size of my read buffer was 1024. A call to CFReadS...

read sniffing data over tcp

i'm developing application that is listening to the data coming to the pc and store it in a db when i'm trying to use any sniffing software it decode the data and i can read it... but in my code ....i cant read it at all it come in a format like that 182226215162234181711881551821161612152094113192157204151991232141301822451045348206...

read full xml file data over tcp

i'm developing application that is listening to the data coming to the pc and store it in a db when i'm trying to use any sniffing software it decode the data and i can read it... but in my code ...., it come in a format like that 18222621516223418171188155182116161215209411319215720415199123214130182245104534820623122586242192174262133...

read xml data over tcp

i'm developing an application that is listening to tcp to get some xml data coming from other devices. i'm use sniffing c# code, and i can sniff all the packets. my problem is that in every packet i can find a Piece of the data in every packet. like this: 1 packet from ip41 data:< 2 packet from ip41 data:?xml versi 3 packet from ip41 ...

How to forward wireless packet to ethernet interface in windows?

Hi, How to forward wireless packet to ethernet interface in windows? ...

How to make a program that sends data through the WiFi router

I got a WiFi router connected to my PC. What I want is to send from another device some data to my PC through the Wi-Fi adapter. Program on the device is developed using EVC++. The one on PC - on VC++. EDIT 1: PC has an IP address. Another device s IP is set at program execution. I mean WiFi IP address. And then connection to WiFi route...

FTP connection through WiFi using windows API

I have a PC and device (Windows CE ). PC is connected to WiFi router by wire,and device is connected to WiFi router (wireless connection). Both devices are connected to the LAN. What I want is to send data from device to PC. Device connects to WiFi router successfully. There is an FTP server working on PC. So device must connect to that...

UDP Delay Potential

I have an application that consists of numerous systems using UDP clients in remote locations. All clients send UDP packets to a central location for processing. In my application, it is critical that the central location knows what time the packet was sent by the remote location. From a design perspective, would it be "safe" to assume...

Network Programming?

I want to leave strictly desktop programming and start exploring networking. I want to make a little program that just sends data from computer A to B running the same program. Just a few questions before I start... 1) What is a better language for net programming Python or C#? 2) Could you recommend some stuff to help me understand h...

Approach for Client-Server Communication in Objective-C / Cocoa

Hey guys, I am working on an application for OS X that needs communication of small bits of data between a server side application and a client side application. I tried using a Ruby on Rails server as a backend way of communicating data, which was very simple and easy to implement but caused a bit of issues (I am not a proficient Ruby ...