networking

Choice of protocol?

I am designing my own transport protocol for a video conferencing application. I would like to know whether a connection based or connectionless based approach is better for this application. ...

dual-stack ipv6/ipv4 on localhost

I have an ipv4 server that only accepts connections over localhost (using INADDR_LOOPBACK). I'd like to convert this server to be dual-stack ipv6/ipv4. However, using in6addr_loopback only accepts connections to ::1. I've found that I can accept ipv4 and ipv6 connections simultaneously using in6addr_any, but as this also allows connec...

Set ip adress for network interface in Windows XP from java

I need to set IP adress on Windows XP machine from our Java APP. As I do not know any way how to set it purely from java I would like to use netsh to set it. Howerver as there are more than one interfaces I need to obtain special "long name" of network connection. Nethsh command will look like this: netsh interface ip set address ...

In C++ networking, using select do I first have to listen() and accept()?

I'm trying to allow multiple clients to connect to a host using select. Will I have to connect each one, tell them to move to a different port, and then reconnect on a new port? Or will select allow me to connect multiple clients to the same port? This is the client code: int rv; int sockfd, numbytes; if ((rv = getaddrinfo(hostN...

Where are possible locations of queueing/buffering delays in Linux multicast?

We make heavy use of multicasting messaging across many Linux servers on a LAN. We are seeing a lot of delays. We basically send an enormous number of small packages. We are more concerned with latency than throughput. The machines are all modern, multi-core (at least four, generally eight, 16 if you count hyperthreading) machines, a...

Does EWOULDBLOCK work for sendto()?

Hi , Could someone please tell us if EWOULDBLOCK. works sendto()? If yes! please give an example ... thanks! If not, is there anything similar to accept error? Thanks for your replies ...

How should I implement bi-directional networking between an iPhone application and an Objective-C server-side application?

I'm looking for advice on the best way to implement some kind of bi-directional communication between a "server-side" application, written in Objective-C and running on a mac, and a client application running on an iPhone. To cut a long story short, I'm adapting an existing library for use in a client-server environment. The library...

How to monitor Linux UDP buffer available space?

I have a java app on linux which opens UDP socket and waits for messages. After couple of hours under heavy load, there is a packet loss, i.e. the packets are received by kernel but not by my app (we see the lost packets in sniffer, we see UDP packets lost in netstat, we don't see those packets in our app logs). We tried enlarging sock...

How feasible/difficult is it to run an application that runs on a router?

In my example, I want to build an application that sends users who join a network some kind of interface and manage this at a central station (possibly the router, or a central server). The new user's input to this interface will be sent back to the central station and controlled. How plausible is this? Is sending something to a newl...

C# Instant messaging

Hi I'm working on a instant messaging program in C#(for learning only). Just wanna to know if my way is right or wrong. I created a Client class whice contains a NetworkStream and Read/Write functions. The server creates a new thread for every client, the thread listen for any new messages. Any better way? ...

Is it possible to resolve a hostname from an IP address without DNS?

Assuming you have an IP address and no other information. You're not allowed to use DNS as it may be reporting invalid information. Also assume that the destination machine is running a Microsoft OS and is currently online and booted. Is there any way to query the machine directly using the IP address (some service/port) to find out...

Can I establish a connection with other computer using JavaScript?

Is the following possible? There are 2 persons working on 2 different computers. Both are connected to the Internet. These users can communicate with each other using a JavaScript program run in a browser. I do not want to use a server. I want to use a P2P approach and I am wandering if it is possible to do it with the JavaScript? ...

How to start networking in Java?

I would like to program a game that can be played by several players seating in front of different computer which are connected via network and I want to use Java for that. In this respect I have several questions. I will be happy if you can answer at least one the question. I can imagine 2 different situations. In the first one I buil...

Ruby Server #eliminate garbage build up

I have a working TCP/IP socket server that loads 3-flash files in succession. How can I unload previous files and eliminate the garbage build up? 2-Flash clients are active, 1-the loader, 2-the next Flash file being loaded, however "the Flash files don't unload." Maybe there's a "put - kill" method or something similar to addChild remo...

How can I search for a specific computer over a closed network?

I have a network of 16 computers all linked to the same switch, not connected to the internet. One of the 16 computers has a small Java app running on it along with a BlazeDS server (aka it's listening on a port for a message). Currently, the other 15 "client" computers have to manually enter the "server" IP where the java app resides...

Client use high port number

Hi, Why does the client end of a connection use high port number(ephemeral ports) whereas the applications listen on typically small port numbers ? Thx in advans, Karthik Balaguru ...

What are some possible causes of iPhone rejecting UDP packet?

On iPhone, I am running an app with AsyncUdpSocket library to take care of UDP networking. I have tested it. I can send UDP packet from my iPhone to a server that runs Java program accepting UDP correctly. However, when it is the other way around, Java program's UDP message doesn't get through to iPhone. So I decided to test the library...

How to instantiate a Socket class in Java?

I know that the Socket class can be instantiated in this way (as an example): new Socket("taranis", 7); where "taranis" is the name of the server in a local network. In this respect I have two questions: 1. If my computers do not form a local network but are connected to the Internet, can I use the IP addresses of computers to instan...

Network Communication Question

I would like to ask a question about network communication. The Question is: A server uses the socket interface on the Lunix platform, and a client uses Winock on the Windows platform. Can they communicate? Explain briefly. I guess the answer is NO. I guess it is due to the compatibility between 2 different socket interface?! Bu...

Blocking all Windows Internet access from a Win32 app

What would be the simplest way for an application I'm writing to block all Internet access on a Windows machine? More details: Windows: XP or higher Application: A basic Win32 app written in C/C++. Blocking: It needs to be able to block and unblock at will, ideally in a way that the user can't easily reverse. (By, say, right clickin...