tcpip

Has there been any improvement in .Net TCP/IP library ?

Sometimes back I had to work on plain TCP/IP client-server application using just .Net framework 2.0. I found that .net 2.0 socket library was quite inefficient and used to take lot of memory and processing cycles we then switched over to C++ and it worked very well. I want to check if there's been any improvements for TCP/IP library i...

Codeigniter DB settings - why 127.0.0.1 works, localhost doesn't

Hello all On my Unix web server, I have two MySQL database servers running. One on port 3306, and another on 3307. I wanted to specify the port number of database to connect in /config/database.php of codeigniter. I tried this.... $database['hostname'] = "localhost:3307"; This did not work. The webapp connected to database on port 3...

Nagle algorithm in tcp/ip

can u kindly explain me the concept of nagle algorithm in tcp/ip,with an example? ...

Is there any list and comparison of different network stacks for Linux/Unix?

I noticed there is LWIP, a light weight TCP/IP stack for embedded systems. So I am wondering are there any other network stacks, which can replace the default Linux stack? And how do they perform? What's the pros and cons of them? THX! --wbsun ...

TCP packet interception and redirection under windows

I have been trying to find some way of redirecting outbound TCP packets under windows, but so far have not been successful. Does anyone know of any software/code bit that would do something like that? I am not even sure it is possible with the windows stack. I am looking at doing something similar to what "-j REDIRECT" is to iptables. ...

Enable RFC 1323 opts in WinNT?

RFC1323 is not supported on winnt 4. However I have heard there is a patch that enables it (some say SP3). I have SP6 and its not enabled and there are no Tcp1323Opts parameters in tcpip service registry. Apparently it was a 3rd party hack/patch. Does anyone know if it exists? ...

Linux: what are means of fields in /proc/net/dev?

The Linux file /proc/net/dev reads like this: [me@host ~]$ cat /proc/net/dev Inter-| Receive | Transmit face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed What do fields drop and errs mean? Are some errs packets ...

c++ library/sample to transport voice and video over TCP/IP

Hi, Can someone point me some c++ samples or some c++ librarys that can transport video and voice over a LAN network. My objective is to activate a web cam in another pc and receive in my pc the video and voice of the another pc (this can be only one way or in both ways pc to pc call, but i only need one way for now, only see and hear ...

What is the difference between Full-Duplex, Half-Duplex and Simplex TCP/IP operation?

Describe each mode. Give examples of protocols that implement the various modes of TCP/IP operation. ...

C# Networking TCP/IP?

Hi All I am in need of some websites where I can buy C# WinForms networking libraries/components/dll's from. Can anybody please suggest any? They should be pretty cheap, but any and all links are welcome :) I can only find one website, and I don't like the look of what they have. Thank you ...

WCF 4 Rest Getting IP of Request?

Hey, how do you get the IP address of the person making a request in something like the following: [ServiceContract] [AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Required)] [ServiceBehavior(InstanceContextMode = InstanceContextMode.PerCall)] public partial c...

HTML\PHP - How to elicit user (visitor)'s info

How to elicit user's information when he/she is visiting your website? IP Address Mac Address User Profile Name OS Name OS version OS Registered to (Name/Company) Computer Name Browser Name Browser Version ISP Name/Internet Connection Provider Name Connection Type Location - City/Country (based on IP) ...

In tools like tcpdump, when exactly are the network packets captured?

One of the tools I am using uses encryption/decryption to send out data over the network. I am modifying the tool and I need to be sure that the data is actually being sent in an encrypted form. Are Wireshark and tcpdump the right tools for the purpose? At which point during the transfer do they capture the network packets? ...

transfering bits in an ip(IPv4) datagram

The bits in Ethernet are transferred in LSB first fashion, but IPv4 datagram is to be transmitted in big endian byte order. e.g. assume an ethernet frame with destination address as 12-34-56-78-9A-BC carrying an IP datagram in the data field. As I understand following will be the order in which the bits will be transmitted: preamble-SF...

Do TCP connections get moved to another port after they are opened?

If a TCP socket server listens on port 28081 for incoming connections and then accepts a connection and start receiving data. Is the port that data is coming into still 28081 or does the port get changed. for example what port does the incoming data come to in the pseudo code below? Is it still 28081 or does the OS assign a new port?:...

c# udpclient response cut short

When I use netcat to send a udp query I get a full response. When I use UDPCLIENT class in c#, i dont receieve the full response, it is cut short. Here is my code byte[] data = new byte[1024]; string stringData; UdpClient server = new UdpClient(currentIP, currentport); IPEndPoint send = new IPEndPo...

Mocking a TCP/IP connection with C#

Hi, I'm a bit of a network n00b, so please be gentle and explain things in a really, REALLY dummy way (it seems to me that every time it comes to network related stuff, people start talking a totally different language). I'm a fairly experienced C# programmer, but lacks some skill when it comes to communication between machines. The sc...

Is there a way to connect 2 browsers without a server? Maybe with Websockets?

I'm looking for a way to connect 1 browser to another without having to incur the network delay of having a server in between. It doesn't look like HTML5 WebSockets will work because I couldn't find a way to listen for connections in Javascript, only establish a connection. Does anyone know how to do this? (Connect 2 browsers directly?...

Should I close a socket (TCPIP) after every transaction?

I have written a TCPIP server that implements a FileSystemWatcher and fills a queue with data parsed from new files acquired by the FSW. A single client will connect to this server and ask for data from the queue (no other client will need to connect at any time). If no data exists, the client will wait (1 second) and try again. Both ...

I need a script/application to persist TCP connections for a PHP frontend.

Hello, I am making a PHP frontend for a backend server using a custom protocol over TCP. Due to a fairly complex handshake when establishing connections to the backend server, I would like to persist the TCP connections to the backend server. Naturally, given the inherently stateless nature of HTTP (and especially so when using mod_php u...