networking

LocalSystem vs. System vs. Local System Windows system accounts

I am completely confused by MS docs on Windows built-in accounts. SQL Server 2008 R2 online docs "Setting Up Windows Service Accounts" tells "Local System is a very high-privileged built-in account. It has extensive privileges on the local system and acts as the computer on the network. The actual name of the account is "...

Trying to deploy RIS on WindowsXP SP3

Hi Guys, I've been trying to deploy RIS on Windows XP SP3 but I think I'm facing a problem with the network card driver. I've followed this guide http://echo.wordpress.com/2010/03/01/installing-windows-xp-from-network-ris/. The problem occurs in the blue installation screen after loading the basic drivers to RAM (before copying Windows ...

Is there a framework like Twisted Matrix for C#?

A few years ago I experimented with TwistedMatrix for Python and loved it. Unfortunately my current project precludes the use of Python as C# is the only language allowed. ...

Is it possible to download only one part of a file (e.g, the first 100KB) in C#?

I'm just curious about whether this is possible - I know how to download a file, but how can I download only the first 100KB of a file? ...

problem with some boost asio code

Ultimately I'm trying to transfer buffers from one machine to another. The code below takes stream of <id><size><data with size bytes> and reads the part in the handleReadHeader function, then reads the <size> number of bytes, then goes back and waits for another <id><size> pair. I've pasted a lot of code, but really the only functions...

Socket file descriptor for socket created with CFStreamCreatePairWithSocketToHost

After creating a socket with CFStreamCreatePairWithSocketToHost is there a way to retrieve the socket file descriptor of the underlying socket? The reason I ask is that if I create a socket with CFStreamCreatePairWithSocketToHost(kCFAllocatorDefault, (CFStringRef)host, port, &readStream, &writeStream...

Setting the IP address of a network interface which is not online (IPEnabled not true) / cable not connected?

Is it possible to set IP address (or anything else) for a network interface which is currently down? I am using WMI, that means ManagementObjectCollection and Invoke methods. But it seems there is no way how to configure IP in c# on a network adapter which is currently down - cable not connected? There is no error message. For example,...

networking what type of socket to use to recieve all data

in networking what type of socket should i use to guarantee that the receiving application has received all of the data in order? ...

Can I have an address family independent network packet struct?

I am adding IPv6 support to a network application. Some control packets should contain a mixed list of both IPv4 and IPv6 addresses (the current code only supports IPv4): struct control_packet { [...] ushort ip1_afi; struct in_addr ip1; ushort ip2_afi; struct in_addr ip2; uchar reser...

telling Windows from Linux (via network)

I am doing a research on how someone can detect whether another machine is running Windows or Linux, if it runs inside a virutal machine, if it's behind NAT\proxy\VPN and what not. I saw some interesting tools like p0f, which does passive detection. Basically, I know there are implementation differences in TCP and other underlying protoc...

Entering background on iOS4 with active network stream

Following this question, the same is true for background networking. The documentation is very short-spoken on how to keep a network connection up and running while the application is in the background with the new VoIP API. The documentation says to add the VoIP string to the info.plist, set your signaling channel to VoIP with CFRead...

C# TCP Socket "Blocking" Property Inconsistency

I use a tcp socket in the following way: m_socket = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.Tcp); m_socket.ReceiveTimeout = 15; The general flow is that I run the m_socket.Receive in an infinite while loop and at some point the socket becomes empty for a long period but I don't want to close it. Instead I...

ASIHTTP Request failed in log, but requestFailed not getting called

I have -(void)requestFailed:(ASIHTTPRequest *)request { NSError *error = [request error]; NSLog(@"Request Failed Error: %@", error); } When I make my request I do //add data to the array NSString *json = [array JSONRepresentation]; [request appendPostData:[json dataUsingEncoding:NSUTF8StringEncoding]]; [request star...

What are best practices for snappy mobile I/O on slow connections?

I have a mobile app, which is pretty data driven, though only through text and images. In the current version each click or touch requires pulling new data from the server (appache/php). With network delay this easily takes 1-2 seconds for the first content to appear, which is far too long. I have heard about and considered the followin...

how to send a timestamp / netmask request?

i heard on nmaps long interview you could instead of pinging an ip which is most likley behind a router / firewall and is ignoring the ping request you could send a timestamp / netmask request. Anyone know how to use this? Also, if anyone knows some tips on getting past firewalls / routers with nmap etc please let me know :) i tried usi...

how does Dropbox upload my files to its server?

Drop Box appears to be really fast at syncing with its server. Does anyone know what algorithm it uses? ...

What is the preferred way of passing data between two applications on the same system?

I have an application (A) that needs to launch another application (B). I need to pass data between the applications. I can think of two approaches. The first is to open a socket. The second is to share data via a dll. The opening socket approach is straight forward. The dll approach I have some questions? I can load plug-in d...

Crossplatform alternative to Winsock?

I basically am looking for a cross platform way to do basic things such as accept connections and send and receive data. What library would work in Linux, Windows and Mac? Thanks ...

How vulnerable is a persistent, unencrypted Internet connection between 2 trusted networks?

Scenario: 2 network devices, each on separate private LANs. The LANs are connected by public Internet. Device on network A is listening on a socket; network A firewall has NAT port forward setup for external access from network B's port range. Device on network B makes outgoing connection to network A to connect to the listen socket. ...

Networking from a Kernel Mode Driver

Hi, The question is pretty self-explanatory, I require the ability to open and control a socket from a kernel mode driver in windows xp. I know that vista and after provides a kernel mode winsock equivalent, but no such thing for XP. Cheers Edit I've had a recommendation to have a user-mode service doing the socket work, and one to u...