networking

How to ignore your own broadcast udp packets

For the following I'm assuming one network card. I have a component of my program which is designed to let others in the subnet know of its existence. For this, I've implemented a solution where whenever the program starts up (and periodically afterwards) it sends a broadcast to INADDR_BROADCAST - whoever listens on the required port w...

Where is Problem in my code to upload a file to server from windows mobile

Hi, i have problem of uploading zip file ot server from my windows mobile.. in server the .zip file is getting created,if i open file its telling unable to open and its corrupted here is code HttpWebRequest req = (HttpWebRequest)WebRequest.Create(uploadUrl); req.Method = "PUT"; req.AllowWriteStreamBuffering = true; ...

What are the effects of incorrectly setting the netmask?

What are the effects of incorrectly setting the netmask? I have a C++ application that sets the network mask of a device. If the netmask is set incorrectly, tftp doesn't seem to work properly. Why would this happen? What other problems occur when the netmask is not properly set for a device/PC? ...

Python: asynchronous tcp socketserver

I'm looking http://docs.python.org/library/socketserver.html to try and handle asynchronous requests with the socketserver in python. At the very bottom there is an example, but it doesn't make sense. It says you use port 0 which assigns an arbitrary unused port. But how do you know what port to use for the client if they are not in the ...

Blackberry 9000 getting HTTP error 406 When using WiFi.

So, I have a Blackberry 9000 application doing simple networking using HttpConnection. Everything works fine normally, when I go to urls of the form: http://url.com But I've discovered that I need to test this in wifi only situations (that is, without a BES or equivalent in sight). After some digging, I discovered that I need to add: ...

checksum udp calculation python

Hi, I'd like to calculate the checksum of an udp header packet I want to send : packetosend = """60 00 00 00 00 24 3a 40 20 02 c0 a8 01 50 00 01 00 00 00 00 00 00 09 38 20 02 c0 a8 01 50 00 01 00 00 00 00 00 00 09 6f""" so i need to join this utf-16 (not a problem) and calculate the checksum of this specific packet. How can i do that ...

Library for maintaining cluster membership over broadcast network with master election?

I am looking for a library that will allow an arbitrary group of computers to participate in a "cluster", where I'm using that term to mean a group of systems in which: the systems are able to automatically discover each other, the systems engage in a master election process to determine the cluster master the systems will re-elect a n...

How can I connect to a remote machine via TCP and UDP with Perl?

I have a script that runs on a server and I want it now to send messages to my PC. I want to send TCP or UDP messages to some port. What is the best way to do this (a tutorial will be great)? And is there some client program that I can run on my PC that will listen to a local port for the messages? ...

Question on C++ Timers

I am currently working on a project that will act like a Online selling website such as Amazon, or Ebay in a very small scale. I was wondering if anyone could point me in the right direction on how to use Timers for C++. Learning Socket Programming at the moment, and was trying to incorporate the timer for the auction time when someone i...

Multiple certificates for HTTPS on a software NLB'd IIS7 cluster

We're currently trying to set up a HTTPS with multiple certificates. We've had some limited success but we're getting some results I can't make any sense of... Basically we have two servers on our NLB (10.0.51.51 and 10.0.51.52) and two IPs assigned to our NLB (10.0.51.2 and 10.0.51.4) and we have IIS listening on both of these IPs with...

Possible to get the hostname of an IP using SystemConfiguration?

I'm using the SystemConfiguration framework to get the current IP from the dynamic store in my app. Is it possible to get the hostname from the dynamic store as well? The current IP could be local, so I'm trying to get the returned value to be something like "mymac.local" or "2adg3.dsl.lgtpmi.sbcglobal.net", depending on how I'm connect...

How to listen on multiple IP addresses?

If my server has multiple IP addresses assigned to it, and I would like to listen to some (or all) of them, how do I go about doing that? Do I need to create a new socket for each IP address, and bind it? Can i bind multiple ip addresses to a single socket? Does IPAddress.Any listen on all IP addresses? The MSDN library is very uncle...

Problem in TCP Program (Java)

Can anyone help me debug this program? The following is server code : package networking; import java.io.IOException; import java.io.PrintWriter; import java.net.ServerSocket; import java.net.Socket; import java.util.Scanner; class TcpServer { public static void main(String[] args) throws IOException { ServerSocket server...

Need some explanation on compile errors:

The following compile errors is what I have: /usr/lib/qt-3.3/include/qobject.h: In copy constructor Product::Product(const Product&): /usr/lib/qt-3.3/include/qobject.h:211: error: QObject::QObject(const QObject&) is private Product.h:20: error: within this context HandleTCPClient.cpp: In member function int Handler::HandleTCPClient(int,...

Assign different IP for different threads in a .net program

The computer that runs my program has 6 different IP addresses assigned to it. I need that each thread will use a different IP address for its communication. Specifically I'm using the WebRequest object for communicating. so is there away assign each thread a different IP address to use instead of the default one? Thanks, Eden ...

QTimer & Select use. Need to get auction time working.

Currently I am having issues with QTimer. I am trying to make each "Product" have a timer and so it will let my "Handler" know that the auction time of the product has ended. The problem that I am having is that from my test, it doesn't seem to print "Timer started". This is part of my socket programming project. I use select because I ...

Question about file transfer for socket programming

Is there a good method on how to transfer a file from say... a client to a server? Probably just images, but my professor was asking for any type of files. I've looked around and am a little confused as to the general idea. So if we have a large file, we can split that file into segments...? Then send each segment off to the server. S...

route a custom url to a web-application

Hi, I have a Vista Home PC with computer-name say *office_pc1* and with IP say 192.168.11.40. I have a web-application, in that pc, which can be successfully accessed via the IP itself. Now, my question is how can I access that web-application if I'm entering the url as: http://support.somedomain.com/, in my local intranet. Is that pos...

mobile network friendly host

i am developing an app for iphone, it is a client side application. and i found the 3g network is very slow, should I change the server host to a mobile network friendly host? any suggestions? ...

Blackberry buffered playback demo??

Can someone help me to buffer a mp3 file on a server using the Blackberry buffered pllayback demo app provided with the jde? I hav loaded it in the simulator. And my mds is started but I m unable to play the audio. There is no error but it doesnt play/load. The code looks all fine. Thanks ...