networking

Tcp connection another android device, based on phone # instead of IP?

For the current Android application I'm working on, I'm looking to create a tcp connection between the user device, and another Android device based on the phone number instead of the IP address. IE the user would open your contacts list, and be able to create a tcp connection to a contact using the same application as you. I seem to re...

Dealing with similar code in multiple C "projects"

I am playing around with some C code, writing a small webserver. The purpose of what I am doing is to write the server using different networking techniques so that I can learn more about them (multithread vs multiprocess vs select vs poll). Much of the code stays the same, but I would like the networking code to be able to be "swapped o...

How can I derive an address and port from -[NSNetService addresses] so I can use it with NSURL

I'd like to use CocoaHTTPServer to set up peer-to-peer communication between different instances of an application on a network. Setting up the server was quite easy, but writing the client is another story. I have the server broadcasting over Bonjour. My client is able to find and resolve the service, but I'm stuck when it comes to get...

Understanding the Bittorrent Protocol

Hi all I am looking for some books, tutorial sites . I want to understand how Bittorrent protocol works and later to implement my own tracker . I don't have a big knowledge in network protocols so I am looking for a newbie stuff . Have seen following posts but they didn't helped me with my issue : http://stackoverflow.com/questions...

What is a good way to connect multiple clients to the server?

Hi, As there are serveral ways of connecting multiclients to the server such as: fork, select, threads, etc. I would be glad if you could describe which is better to connect multiple clients to the server? Thanks for you time and reply? ...

client-server design

i want to develop a pretty basic client-server program. one software reads xml (or any data) and send it to the server who in turn will manipulate it a little bit and eventually will write it to the disk. the thing is that if i have many xml files on disk (on my client side), i want to open multiple connection to the server , and not d...

How to debug VS website remotely.

I have crated a ftp server and placed my website code over there. Now i want my team members to work on the same copy over internet. Now the problem is that they can open the solution in VS 2008 but could not debug it. i installed remote desktop monitoring and all required setups but could not get what the problem actually is. 1 more Q...

In memory database with socket capability

Python --> SQLite --> ASP.NET C# I am looking for an in memory database application that does not have to write the data it receives to disc. Basically, I'll be having a Python server which receives gaming UDP data and translates the data and stores it in the memory database engine. I want to stay away from writing to disc as it takes ...

How do I test my DNS connection?

A simple question. How do I test if my current DNS is working or down? Would it involve polling? That I fear would take up resources and also require execution on a separate thread. ...

Level Vs Edge Trigger Network Event Mechanisms

What does it mean for some network event mechanism (i.e. epoll/poll/select) to be edge or level triggered? ...

Java server memory management on slow networks

I'm writing a code that generates a large XML document and writes it directly into a client stream using StAX XmlStreamWriter. I'm afraid that if the network becomes extremely slow, the bytes written into the stream will actually stay in memory buffers for a relatively long time and consume a lot of memory on my server. My question is: ...

How to write SMS application in blackberry?

Can any one help me to write application to send and recieve sms in blackberry.If u can provide me some code snippet . ...

Question about using Bonjour or other methods to secure a connection with a non computer device

So I have a project I am working on, and I would basically like to send a basic yes/no command from the iPhone to a wifi enabled device that is also connectedto the network on the same router. This other device is not a computer, so I am wondering if I can still use Bonjour? In order to use Bonjour, do both of the communicating devices n...

How do two computers connect to same external address through NAT?

If I have two internal computers connecting to the same external IP address through a NAT router, how is the router able to get the traffic to the correct internal computer? It is my understanding that NAT forwards incoming packets to the computer that recently sent outgoing packets to the [incoming packet's] sender's IP address. Since b...

MSMQ multicast (PGM) binding to wrong network interface

Has anyone had any luck getting MSMQ multicast (PGM) to bind to a specific network interface using the MulticastBindIP registry setting? MSMQ Multicast (PGM) always seems to bind to the first interface listed by ipconfig. In my case, I have VMware installed, so I have two virtual network interfaces (VMnet8 and VMnet1) as well as my netw...

Java: Forwarding a port to ServerSocket

I'm building a simple server application, and I can connect to it in the Local Network. But I can't connect over the internet. This is my Server code: ServerSocket server; try { server = new ServerSocket(4000); } catch(IOException ex) { System.out.printf("Could not bind socket 4000\n"); System.exit(1); } try { Socket ...

Best way to send an ArrayList<String[]> over TCP in Java?

Hello, I'm writing a client/server application in Java and I'm using TCP to transfer data which I'm storing in an ArrayList (i.e. An ArrayList of arrays of Strings). What is the best way to transfer that data from one to the other? Should I make one long string and use a PrintWriter's println() or is there a better way? Thanks very mu...

how to access a shared folder on a windows machine with iphone SDK?

Hello, I was wondering if anyone could help point me in the right direction if I am trying to write the contents of a file from a shared folder on a windows machine to an array on the iphone over a wifi connection. could I do it with initWithContentsOfURL?? thanks for the help ...

Sending a password unencrypted over the Internet.

I cannot receive an SSL certificate for an ODBC database connection between my local machine and my hosting service. If I know my network is secure and my hosting service's network is secure, how worried should I be about data being intercepted between our two connections? In this situation is there any other way to retrieve data secur...

what happens when tcp/udp server is publishing faster than client is consuming?

I am trying to get a handle on what happens when a server publishes (over tcp, udp, etc.) faster than a client can consume the data. Within a program I understand that if a queue sits between the producer and the consumer, it will start to get larger. If there is no queue, then the producer simply won't be able to produce anything new,...