networking

access a windows share from ASP.NET

I need to write a file to a windows share on a computer not part of a domain from ASP.net. I've tried implementing impersonation like : http://support.microsoft.com/?id=306158 which wraps the LogonUserA api call. Something isn't working though, and I don't know why. (It doesn't seem to give any error code or reason message...) I think ...

NSNetservice IP address

Hi, I'm using NSNetservice for my client-to-client application then now I want to hard code the IP address of the client who I want to send. Means instead of searching for their domains, I want to hard code inside my code. Do anyone knows? Thankz ...

DNS answer returning NS records without IP addresses , is this normal ?

In my application, I have to send notification e-mails from time to time. In order to send mail (over SMTP), I have to get the MX server of that particular domain (domain part of e-mail address). This is not a Unix application but an Embedded one. What I do goes like this :: 1 - Send a DNS query (MX type) containing the domain to the c...

How can I bind an (outbound, of course) HttpUrlConnection to a specific local ip address, when I have multiple NIC on my client machine?

I have a kind of Http-Gateway app, which acts as an http client towards servers outside our local network. There is going to be a network configuration upgrade, and I'm going to have problems because: - there are multiple network cards on client machine - firewall/nat rules use hardwired ip addresses If I could programmatically for...

Should I use (non-blocking) NIO for UDP?

According to this post, UDP just doesn't block. Are there any advantage using the (non-blocking) NIO API for UDP? Or should I just use the easier "traditional" io API? ...

Optimizing a LAN server for a game.

I'm the network programmer on a school game project. We want to have up to 16 players at once on a LAN. I am using the Server-Client model and am creating a new thread per client that joins. However, a lot of CPU time is wasted just checking on each thread if the non-blocking port has received anything from the client. I've been read...

Twisted Spread suitable for multiplayer racing sim?

Do you think that Twisted Spread may be suitable (in terms of performance) for a multiplayer racing simulator? The rest of the application is based on Python-Ogre. Can Perspective Broker run upon (reliable?) UDP? ...

Why would a blocking socket repeatedly return 0-length data?

I'm having a significant problem using a standard BSD-style socket in a C++ program. In the code below, I connect to a local web server, send a request, and simply create a loop waiting for data to return. I actually do receive the data, but then I get an endless stream of 0-length data as if it was a non-blocking socket. The web server ...

Network help through socks proxy

Hi, I'm looking networking help. I have a secure tunnel set up which gives me an http proxy on port 8080 and a socks proxy on port 1080. I also have ProxyCap installed which is configured to push all network traffic apart from a few exceptions through the socks proxy. Basically my problem is that if I try to run uTorrent with this met...

Non-blocking socket on Windows doesn't return after send() call

I'm hoping someone can explain a situation -- any situation -- in which a non-blocking Windows socket would not immediately return after using send() on it. On other platforms, my code works as intended, so it appears to be a Windows-specific issue. The way I can tell it isn't returning is quite simple: I cout a message immediately befo...

Is there a modbus implementation which uses Mina 2.x?

Is there a open source modbus implementation which uses Apache Mina 2.x? ...

Upload file suggested by microsoft doest work for me in CGI.

Hi all, we would like to upload a .zip file in windows mobile to .cgi script running at server. in desktop we have "Webclient.uploadfile" API, it does't support in winmo. do we have any alternative methods to upload file in windows mobile.. we tried a sample method suggested by Microsoft,but it doesnt work for our CGI script. please le...

How do I extract the network protocol from the source code of the server?

I'm trying to write a chat client for a popular network. The original client is proprietary, and is about 15 GB larger than I would like. (To be fair, others call it a game.) There is absolutely no documentation available for the protocol on the internet, and most search results only come back with the client's scripting interface. I ca...

C# Networking API's

Hello, Lately I've been looking for a good networking API i could possibly use and/or reference some of the code within, but i have mere luck searching for some on Google/Bing. Hopefully somebody here has seen and/or used a helpful networking API for C#. Thanks in advanced. ...

Two-way communication?

Hi, Now currently trying to combine a client and server application together so that the program itself can send and receive. I'm using NSNetservice for this program in xcode and anyone can teach how to make it like if I run the same program at different mac computer, one of the program will run as client another will be server and then ...

Java Windows Mobile Application Taking Too Long To Reestablish Network Connectivity

We have a Java application running on the JBed JVM on Windows mobile 6.1. When it loses connectivity the application is taking a long time (8 - 10 minutes) to re-establish VPN network connectivity, despite the fact that other applications can see the VPN far sooner (roughly 2 - 3 minutes). From our application logs we can see that two ...

Question about send / recv

New to socket programming. Got a couple questions: My program is really inconsistent with its output. Sometimes my client receives, sometimes it doesnt. I am also using the same input each time. Just need confirmation: Can the number of bytes received be less than the number of bytes sent from the server? How do I make it so that I st...

how do I detect download in progress using c#?

how do I detect download in progress (in any application such as download in IE or firefox or download manager ) using c#? ...

Error with parsing string and trying to find '\0' character

I'm trying to get one side to send an error message to client, but client isn't able to parse it correctly. My error is >>>>> in my parseString function, it lets index = 0 and therefore I get an out of range for my 'substr' call. Server Side::: #define ERRBUFSIZE 51 string error = "Error - Already Registered: "; erro...

passing structs over UDP weakly typed

I'm new to network programming, and am basically learning-by-doing. I'm folling Mike Ashes program "Sphere Net" from iPhone Cool Projects. I understand what's going on in the program, but I'm ready to start extending it and I expect to be sending a reasonable variety of packet types (each represented as a struct). It doesn't seem rign...