1
голосов
3ответов
20961 просмотров

How to Send Packets Between Two IP Hosts on Different Subnets?

Host 1: 10.10.0.1 Host 2: 10.10.1.2 Mask is both: 255.255.255.0 How to send a packet from Host 1 to Host 2?

0
голосов
4ответов
1843 просмотров

how to send data over network fast?

i have lots of data like this 1:0x00a4c7d9fb3849... 2:0x79821309bd789c7689c97... 3:0x0178dce67fe898... they are more than 100 per second and speed is the most important thing(network is always busy). what should i use to transfer my data(tcp/ip, pipes, via, etc)? how should i serialize it(Binar...

4
голосов
4ответов
4378 просмотров

Sending large chunks of data over Boost TCP?

I have to send mesh data via TCP from one computer to another... These meshes can be rather large. I'm having a tough time thinking about what the best way to send them over TCP will be as I don't know much about network programming. Here is my basic class structure that I need to fit into buf...

0
голосов
2ответов
996 просмотров

C# Network encoding

I'm working on a networking application in C#, sending a lot of plain numbers across the network. I discovered the IPAddress.HostToNetworkOrder and IPAddress.NetworkToHostOrder methods, which are very useful, but they left me with a few questions: I know I need to encode and decode integers, w...

0
голосов
3ответов
295 просмотров

How to create a virtual network for an application

I'm creating a simple p2p application. To test this I'd like to be able to simulate a simple network of about 2-3 computers, such that each instance of the application thinks its on a different computer and talking with others over the network. I considered qemu, but haven't managed to get networ...

0
голосов
1ответов
1066 просмотров

mkdir nant permissions

I need to use mkdir on a network path, which is on a different domain. I can login into the network properly, however nant is not able to. I setup a network drive on the system where nant runs, however it still cant access it. Does anybody know how to achieve this?

2
голосов
2ответов
673 просмотров

Firewall / visited websites logger

I have a firewall implementation and I want to log all the websites visited on the machine. So when the user enters an address in the browser(any browser) or clicks a link to be able to log the visited address. The problem is that I want to log only the visited address and NOT the other resourc...

1
голосов
2ответов
4681 просмотров

Bind: Address Already in Use

I'm trying to run my server program but I keep getting this error: ERROR on binding: Address already in use int main(int argc, char *argv[]){ if (argc < 6){ printf("usage: stringSearcher <filename> <stringLength> <searchLength> <nChildren> <nT...

0
голосов
4ответов
704 просмотров

Share data in LAN

I'm building a music library program, and I want to have the ability to share the library in the LAN. How can I discover others who share their library? I'd like to find others' libraries without typing in IPs and stuff.

6
голосов
3ответов
1362 просмотров

How to profile network utilization of a .NET application

I have a .NET windows service that does a lot of network magic (WMI, Ping, etc - the list is very long). I would like to profile, with as much ease and detail as possible, how much bandwidth the application uses in total as well each part in the code. Are there any tools that can help me do tha...

1
голосов
1ответов
500 просмотров

How to toggle the option returned by ConnectivityManager.getBackgroundDataSetting()?

Did anybody watch jsharkey's battery life google io presentation ? How does one toggle the option returned by ConnectivityManager.getBackgroundDataSetting() in the emulator ?

0
голосов
2ответов
11466 просмотров

How to scan an IP Range C#

How to scan a specific range of IP and also increment it to user defined range.. in like most of the port scanners. but how to increase host bits.. it increases network bits.. private static void sendAsyncPingPacket(string hostToPing) { try { int timeout = 5000; ...

0
голосов
2ответов
105 просмотров

How to track "freezing" app, finding its source?

I have a server with 3 threads and a threadpool for recieved data processing. The only locks (reader and writer) Im using are for client connection lists. Sometimes the main form freezes for a second and I cannot find the problem. The form doesnt do any hard work, thats for different threads. I w...

2
голосов
6ответов
14207 просмотров

C# -calculate download/upload time using network bandwidth

As a feature in the application which Im developing, I need to show the total estimated time left to upload/download a file to/from server. how would it possible to get the download/upload speed to the server from client machine. i think if im able to get speed then i can calculate time by --&g...

2
голосов
2ответов
2727 просмотров

Redirecting audio output

I need a method to redirect my Mac's audio output to a different computer on the same network as the Mac doesn't have audio output. I'm on Snow Leopard while the other computer which has speakers attached does not have any operating system at the moment.

5
голосов
2ответов
514 просмотров

Books to read on networking and microcontrollers?

I was recently elected programming team lead for my community college's engineering club. We're going to put a solar panel on a roof. The programming part involves Controlling servos to adjust the orientation of the panel Sending data on the electricity collected by the panel to a server (we ...

4
голосов
3ответов
3956 просмотров

How to determine the binding order of network interfaces on Windows using .NET?

I'm trying to find the magical answer to the "what's the primary IP address" of a system. My research has determined that the answer to "best" means this: Look at [system.Net.NetworkInformation.NetworkInterface]::GetAllNetworkInterfaces() for interfaces with default gateways assigned. If you on...

60
голосов
6ответов
87400 просмотров

How to avoid a NoRouteToHostException?

Disclosure: the code I'm working on is for university coursework. Background: The task I'm trying to complete is to report on the effect of different threading techniques. To do this I have written several classes which respond to a request from a client using Java Sockets. The idea is to flood ...

9
голосов
1ответов
3013 просмотров

Fork before or after accepting connections?

The following snippet of code creates 4 processes, all sharing the same listening socket. Is there any danger in doing this? Should I always have one listening process and fork after connections are accepted, in the conventional manner? for (p = 0; p < 3; p++) { pid = fork(); if (pid ...

21
голосов
5ответов
16394 просмотров

How to determine MAC Address of the actual physical network card -- not virtual network interfaces created by VPN's (.NET C#)

Background I'm trying to get obtain a unique identifier out of a computer and want to be able to reliably return the same MAC address each time. Trust me I have my reasons for using MAC address and have read many posts about alternate unique id methods (and yes i've considered if they don't hav...

2
голосов
5ответов
1482 просмотров

HTTP As Communication Layer for a Game

I've just started dabbling in some game development and wanted to create a simple multiplayer game. Is it feasible to use HTTP as the primary communication protocol for a multiplayer Game. My game will not be making several requests a second but rather a a request every few seconds. The client wi...

1
голосов
2ответов
1442 просмотров

detect ip conflict using C#

Is there any way to detect the message IP conflict? I will be using this in a thread in my program.

7
голосов
4ответов
12926 просмотров

Is there an alternative to inet_ntop / InetNtop in Windows XP?

I'm trying to compile beej's guide to network programming examples, but Windows XP doesn't have such a function. I'm using mingw, if it makes any difference.

663
голосов
57ответов
471629 просмотров

How to check internet access on Android? InetAddress never times out

I got a AsyncTask that is supposed to check the network access to a host name. But the doInBackground() is never timed out. Anyone have a clue? public class HostAvailabilityTask extends AsyncTask<String, Void, Boolean> { private Main main; public HostAvailabilityTask(Main main) {...

1
голосов
1ответов
1117 просмотров

Getting HTTP xml error response using cURL

I am currently using cURL to communicate to a cloud site... everything is going well except for an annoying issue. The issue is that I cannot get the site's xml response when there is an error. for example, when I use Wire Shark to check the transfer I can see that in the HTTP header that I'm get...

0
голосов
2ответов
396 просмотров

How can I setup a network connection for a hosted OS in Virtual PC, when the host OS doesnt have a network connection?

I just want a connection to talk between the hosted and the host OS's.

0
голосов
2ответов
610 просмотров

Detect H.323 by simple sniffing?

Is it possible to detect if a H.323 connection (phone call) is up by simple sniffing traffic on an adjacent node?

6
голосов
2ответов
5102 просмотров

how to get started in p2p networking programming?

I want to learn how to write a software using a peer to peer networking architecture but i don't know where to start, knowing that I use as a programming languages : c/c++ , lisp, a little of python. any pointer to documentation or tutorials is appreciated.

1
голосов
4ответов
2763 просмотров

Examples of OpenGL programs with networking code?

I'm wondering if anyone has/knows of any examples of networking code integrated with OpenGL. Basically, I need to send position coordinates of something over a network to my OpenGL display... which would then draw the object at the correct position. The problem I'm having is integrating my UDP...

3
голосов
2ответов
336 просмотров

Stop QNetworkRequest buffering entire request

How can I stop QNetworkRequest from buffering the entire contents of a QIODevice during a put/post to an HTTPS connection? It works fine when posting to HTTP but HTTPS causes the entire file to be read into memory before the post starts.