networking

Sending a HTTP post to a web server with Java

As per title really I'm wanting to send a custom HTTP post request to a web server and I have little experience in this area. The web server uses an LDAP server for access control (not sure if that's important) for which of course I know the username and password. Could anyone flesh out some code to do this or at least get me started? E...

Identify equal paths

Is there's any simple way for identifying whether 2 (or more) paths point to the same location (assuming I only have read permissions)? e.g. \My-Machine-Name\temp \212.200.10.5\temp c:\temp ...

VBA: Test network drive connection speed.

What is a good way for excel to test network connection speed to the network drive my excel project is stored on? Many of my clients have been complaining that my excel project runs too slow (running it off the network). This is because some of the offices have slower connections than others to the network drive where it (and its acces...

Help me to choose Socket or TCPListener

I read 2 C# chat source code & I see a problem: One source uses Socket class: private void StartToListen(object sender , DoWorkEventArgs e) { this.listenerSocket = new Socket(AddressFamily.InterNetwork , SocketType.Stream , ProtocolType.Tcp); this.listenerSocket.Bind(new IPEndPoint(this.serverIP , this.serverPort)); this.lis...

Chat server with a lot of clients

Hello everyone, I read some C# chat source code & I see that: on chat server with a lot of connected clients, server listener will run in a separated thread & each connected client will also run in a separated thread. Code examples: Start server & begin listening in a separated thread: public void StartListening() { ...

maven not working anymore with new kernel

Hi, I'm a bit disappointed by what is happening to me. I'm not a maven expert (ie I just type mvn clean install as I was told) but as I installed a new kernel on my debian machine, it seems maven doesnt work anymore : on old kernel (2.6.26-1-amd64) it download all dependencies well. on new kernel (2.6.32-trunk-amd64) it fail downloadi...

Can I use Apache servers for a local network?

I would like to write a computer game played by several users sitting in front of different computers. For that I would like to implement a P2P approach. Now I consider the following situation. I have, let say, 6 computers which build a local network. On every computer I install Apache web server. So, every computer runs a web site. In ...

How to send large data using C# UdpClient?

I'm trying to send a large amount of data (more than 50 MB) using C# UdpClient. So at first I split the data into 65507 byte blocks and send them in a loop. for(int i = 0; i < packetCount; i++) myUdpClient.Send(blocks[i], block[i].Length, remoteEndPoint); My problem is that only the first packets can be received. During sending t...

Any program that calculates the throughput from the output of tcpdump?

I am currently using tcptrace but am observing some ridiculous throughputs on a test that I'm running. I am pretty sure something is wrong with the way I am testing but before spending any more time is there any other program I can use to verify this? EDIT: This is for a router simulator that I am running locally on my system that gene...

Can someone explain what a wire-level protocol is?

I am not very clear about the idea of wire-level protocols. I heard BitTorrent uses it and read that a wirelevel protocol can be considered an opposite of API. I read RMI calls can be considered wirelevel protocols but am still a little confused. Can someone explain this in a better way? ...

UDP Chatting Problem

hello friends i have created a UDP chatting program through which the clients can communicate over LAN. I have created a genaralized program i.e. I run the same code with different port nos. and IP address when on LAN My problem is that This code below works fine on localhost but when i try to connect two machines this code doesnt work...

Connecting to tcp server from client running in android device

Hi, I am trying to connect to a standalone desktop tcp server(java) from tcp client application in android device. But I am not able to connect to that. I tried to write a desktop tcp client and tried to connect to server(remote server). It is working fine. But When I am trying to connecting from android, I am getting a IOException wh...

A Packet Blocker Software

Can any one suggest me a packet blocking software ?? My requirement is to block packets within the LAN.(Internet does not come into picture). Supposing CLIENT_A communicating to CLIENT_B in the same network(LAN). I want a CLIENT_C (who is in the same network) to capture(I can use jpcap library's sniffer for this purpose) and block pac...

C C++ - TCP Socket Class : Receive Problem

Hey, I did my own Socket class, to be able to send and receive HTTP requests. But I still got some problems. The following code (my receive function) is still buggy, and crashing sometimes. I tried debugging it, but it must be somewhere in the pointer arithmetics / memory management. int Socket::Recv(char *&vpszRecvd) { //vpszRecvd =...

Need some help interpreting tcpdump output...

I've checked the tcpdump man page and thought I understood the example provided there. But the one that I am getting is something I'm not able to understand completely. ORIGINAL: Simulator Output LINE 1: 20:01:13.442111 IP 10.0.0.1.12345 > 10.0.0.2.54321: S 1234:1234(0) win 65535 LINE 2: 20:01:13.471705 IP 10.0.0.2.54321 > 10.0.0.1.123...

How do I find maximum number of concurrent connections that a server can handle ?

I want a java program, which can find the maximum number of concurrent connections that a server can handle ? You can assume that the server is http server. To be more clear: There are lots of opensource NIO frameworks. I want to pick one for my project. And want to test which implemenation supports maximum number of concurrent connec...

A twitter bug realted to IP Addressing and Authentication.

I am building a web application where i got trapped in login module. I was about to implement lock out functionality using IP address of machine but for Dynamic IP router can be restarted so I was thinking to store MAC address which was not feasible to retrieve on web. Then i tried to know functionality on GMAIL and Twitter Cases tha...

[C#] TcpClient - waiting for data to become available.

In my C# application, I have a thread which basically continually reads from a TcpClient until told to stop. I use WaitHandles for this purpose, for example: private ManualResetEvent stopping; private void Receive() { while (!this.stopping.WaitOne(10)) { while (this.client.Available > 0) { // Read an...

Java: Common way to validate and convert "host:port" to InetSocketAddress?

Hello, everyone! What is the common way in Java to validate and convert a string of the form host:port into an instance of InetSocketAddress? It would be nice if following criteria were met: No address lookups; Working for IPv4, IPv6, and "string" hostnames; (For IPv4 it's ip:port, for IPv6 it's [ip]:port, right? Is there some RFC wh...

Is there a class you can use for devices with ethernet connectivity

Hi, I am using C#.net and need to connect to a device that has ethernet (ip address). What class can I use to communicate with such a device ...