tcpip

How to simulate a dial-up connection for testing purposes?

I have to code a server app where clients open a TCP/IP socket, send some data and close the connection. The data packets are small < 100 bytes, however there is talk of having them batch their transactions and send multiple packets. How can I best simulate a dial-up ut connection (using Delphi & Indy components, just FYI)? Is it as s...

From a Java programming perspective, what difference does multicast make to a networking program?

My manager has asked me to assess what changes would be required to add multicast support to a socket-based TCP/IP networking program that is part of a trading system. As far as I can tell, from the perspective of a Java program, it doesn't seem to matter too much whether the program is unicast or multicast. Doesn't the Java networki...

Two Connections from behind firewal via one server - can the two connections send data directly without going through the server?

There are three computers, server-A client-B and server-C. All are connected via TCP/IP. Computer server-A and client-B are behind a firewall and can only make outward connections. Computer server-C can both listen and connect. Server-A and server-C will run my program and hence can both listen and connect, at least I can program them ...

Seeking info on how to use the VB6 Winsock, flow of events, etc.

I'm using the MS Winsock control in VB6 and I want to understand things like "when does the Server Close the connection (triggering the Winsock_Close() event), and a related question: How do you know when all the data from a a Post has been returned? More info: I should have mentioned: I've already read the MSDN description, etc....

How do you know when all the data has been received by the Winsock control that has issued a POST or GET to an Web Server?

I'm using the VB6 Winsock control. When I do a POST to a server I get back the response as multiple Data arrival events. How do you know when all the data has arrived? (I'm guessing it's when the Winsock_Close event fires) ...

sending file to another active directory user using c#

Hi, I have set up a system with a Client-Server architecture. Problem: Sending daily log data from the client application to server. Both the client and server are on an internal network. Possible Methods... 1) Using Socket Programming 2) Sending over Active Directory (if possible) Please suggest some methods (apart from http) and ...

sending a file from one IP address to another IP address using c#

Hi, I want to set up a system with a Client-Server architecture. Problem: Sending daily log data from the client application to server. Both the client and server are on an internal network with different IP addresses. Possible Methods... 1) Using Socket Programming 2) Sending over Active Directory (if possible) 3) Sending file fr...

Why does my Client Server Socket Connection Keep Disconnecting

Hi All, I have a client server application writter in C# .NET using Sockets. I often get log messages (say about 4 per hour) saying this message, An existing connection was forcibly closed by the remote host In this case here the error is occuring on the 'server' side. I decided to use wireshark to analyse what is occuring, and I g...

input data into android database

I am currently working on a java program that inserts excel data into android database(sqlite). when i place the TestDB(sqlilte db) into c:drive it works. Connection con = DriverManager.getConnection("jdbc:sqlite:C:\\TestDB"); But it won't work on android(emulator) database. The database have been created in android. Connection con ...

IP2Location to get user's campus

I'm writing a web page that will detect which college campus a user is accessing the site from. I have a list of which IP ranges go with which campuses. My question is whether it would be better to detect the user's campus from their IP, using this list, or from their hostname, or both. My concern with using IP ranges is that these ma...

HTML5: Latest WebSockets

Has anyone read Hickson's May 2010 draft-hixie-thewebsocketprotocol-76 WebSocket protocol? Here is the the source of an .htm file: <html> <html xmlns="http://www.w3.org/1999/xhtml"&gt; <head> <script type="text/javascript"> var socket = new WebSocket('ws://localhost:8181/websession'); socket.onopen = function() { ...

Delay before sending message over socket - how does that help?

I have a tcpip socket interface to a third party software app. I've implemented this interface for several customer sites with no problem. The latest customer, though... problems. We've turned on logging in the apps on either end, and also installed Wireshark on the PC to log raw tcpip traffic. With that, we've proved that my server ...

Is there some http GET response that I can add to fix an encoding problem on the client web browser?

I have an embedded web server written in C using uIP libraries, in a microcontroller, which outputs the following static text in response to an http get. It is shown below as a C literal string: "HTTP/1.0 200 OK\r\n" "Server: UIP/1.0 (http://www.something.com/)\r\n" "Content-type: text\html\r\n" Right after that comes the doctype stri...

How to set Keepalive on Windows Server 2008

Hello, I have win32 application in which winsock is used for TCP/IP communication. I am setting keepalive value with WSAIoctl function and it is working normally with windows XP. But on Win. Server 2008 WSAIoctl fails, and WSAGetLastError returns 10022(invalid arguments) which does not make any sense. My code which sets keepalive is fo...

What value will recv() return if it receives a valid TCP packet with payload sized 0

In TCP socket programming, if recv() returns 0, it is taken as an indication that the other side closed its connection. However, AFAIK, the TCP RFC does not mandate the payload of TCP to be > 0. So, theoretically, a TCP stack can receive a message with payload 0. So, essentially my question is what will recv() returns if it receives a p...

TCP/IP Protocol stack without an OS...

I'm looking for a TCP/IP stack that can be used without an OS. Our customer has an "aversion" to interrupts and doesn't want a real OS on a embedded board we're building. It's desirable to move as much of the functionality to FPGA as possible due to the fact we will be only using a 50 to 100 MHz Arm. And I'm pretty sure GPL licensed s...

What does destination mac address field contains, when the source doesn't know address of remote machine

What does destination mac address field contains, when the source doesn't know address of remote machine ? (say opening page from google.com from my machine) And while broadcasting the packet, what does mac-address field contains? ...

TCP connection - delayed close() and RST

Hi, I have both TCP client and TCP server run on RHEL 5.3 on different machines. I'm killing server and FIN is sent to the client. ACK is sent back by client's OS back immediately. Client discovers the close (by read() returning zero) and perfroms close only after 90 sec. At this stage I verified netstat on both sides and it's as expe...

Windows: "netstat -e" for a specific adapter

In Windows, I want to get the statistics similar to that dumped out by "netstat -e". This commands spits out the data (bytes in & out) for all the adapters. How can I get similar information but for a specific adapter. Say if I have two adapters & both are connected, how can I specify (either using netstat or something else) to give me t...

Creating client and server sockets in the same file

Hi, I would have to design a job scheduling system which works like - users (clients) would deposit jobs (executables) to a server. I have three files - client.c, jobQ.c and server.c. The jobQ would take client requests, and send them to the server on specific timestamps (if a user wants to run job X on server Y at 07-29-2010 3:34 AM, t...