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

Catch network adapter up/down and address changed event (Windows, C#)

I am searching for a method to be notified when any windows network interfaces go up or down or the addresses of any network interfaces are changed. I would prefer solutions in C#, C is also possible. Winpcap could be used. I am aware that there is an event for network adapter address changes...

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...

8
голосов
3ответов
7060 просмотров

How to determine an incoming connection is from local machine

I have a SocketServer accepting incoming connections. For security reasons I should only allow local connections (connections from the machine on which server is running). How can I determine if an incoming connection is from another machine? Is the following code safe for this? Socket socket =...

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

Standard way of using a single port for multiple sockets?

Hey I am writing an app in Twisted, and as it stands I have 4 servers bound two different ports all communicating with the client via JSON. Is there anyway to bind these 4 servers to the same port and have the interactions remain the same? For instance say the client subscribes to two different ...

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

Insert port traffic into SQL table

I'm working on a project where a hardware device will be sending small chunks of text data (around every 5 seconds) to a port on the Windows 2003 server. I need to capture that data and insert it into SQL server for later retrieval, display, analysis etc. Obviously I need something to monitor th...

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

How to program an audio/video application on network?

I want to make (for fun, challenge) a videoconference application, I have some ideas about this: 1) taking the audio/video streams (I don't know what an audio/video stream is) 2) pass this to a server that lets communicate the clients. I can figure out how to write a server(there are a lot of b...

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

C# Socket server Ports

Hey, so I'm trying to build a simple lan game using sockets (not tcpclient or tcplistener, and yes I know they are the same thing). I managed to get the chat working, and now I'm trying to get the game to work. I read somewhere that the best way to manage the game data would be through another po...

2
голосов
4ответов
2938 просмотров

Detecting the Loopback Adapter

What is the best way for detecting whether a network interface is a loopback adapter? The windows API's GetAdaptersInfo and GetAdaptersAddresses state in the documentation that they will return whether an interface is a loopback through the Type (MIB_IF_TYPE_LOOPBACK) but neither of these do for...

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

Are web-services THE defacto way of implementing client -> server communication when performance is not the dominating concern?

It seems that when people want to pass data from the client to the server, almost everybody just uses web services. Is the best way to do this when you don't need the performance of straight TCP?

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

How can I execute certain commands on a separate thread?

What is the best solution to allow an object to execute methods on a thread? The object is the owner of the TThread and the thread contains only a TidHTTP (blocking socket) to post request and parse the response. Example : Object> Execute Request on the Thread Thread> Send request via id...

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

Network programming abstraction, decomposition

I have a problem as follows: Server process 1 Constantly sends updates that occur to a datastore Server process 2 Clients contact the server, which queries the datastore, and returns a result The thing is, the results that process 1 and process 2 are sending back the client are totally d...

0
голосов
5ответов
3592 просмотров

Is there a program that can send data via sockets to a server, to test it?

I have a simple socket server, that waits for a message and responds. How can I test this? Is there a client app or something that can help me send some data on a specific port to a server, and see the output? Telnet?

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

What is the xmlsocket:// protocol?

This SO answer says "The Flash Player now looks for a policy file on port 843".. I have a policy server that is listening on port 843 which sends out an XML policy to Flash clients. Is this enough? What is the "xmlsocket://" protocol? Is it just a way to tell Flash player that we're talking about...

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

How can I programmatically detect a Window's network adapter's duplex state?

I am using WMI to detect a number of items about a network adapter's state. Among the things I need to find out are (a) speed and (b) duplex. I have been able to detect the speed of a network adapter by using WMI and the following Python code: from pycom.client import wmi dev_name = r"\DEVICE...

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

Multiple threads for multiple ports?

To start off, I don't know very much about network programming... So given that, I have a program (process) which needs to listen on 3 ports... Two are TCP and the other UDP. The two TCP ports are going to be receiving large amounts of data every so often (could be as little as every 5 minu...

24
голосов
3ответов
83239 просмотров

UDP checksum calculation

The UDP header struct defined at /usr/include/netinet/udp.h is as follows struct udphdr { u_int16_t source; u_int16_t dest; u_int16_t len; u_int16_t check; }; What value is stored in the check field of the header? How to verify if the checksum is correct? I meant on what data is the ch...

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

How to analyze/intercept packets before they are sent/received by the OS?

I have always wondered how software firewalls work under the covers, and would like to be able to write my own custom tools to analyze or intercept packets before they are sent or received by the OS. I'm fairly acquainted with core networking principles; I just have no clue where to start if I wa...

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

Advantages of knowing for a client, how big the package sended by the server is

I'm really new at network-programming, so I hope this isn't a complete Newbie-question. I read a tutorial at the Qt-Homepage how to build a little server, and I found this: QByteArray block; QDataStream out(&block, QIODevice::WriteOnly); out << (quint16)0; out << "..."; // just...

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

client-server program, problem sending message from client to server and viceversa using TCP

I have a small program that sends and receives data from server and client and vice-versa. Everything works fine, but I can't see received messages in both sides and it is always 0 bytes. It doesn't give any compile error but doesnt work the way I wanted to. Can you please have a look at this, wh...

8
голосов
4ответов
7495 просмотров

how to differentiate if client is using TCP or UDP from server side

I am writing simple client-server program. Client send some messages to server using UDP or TCP. Server must be able to support both UDP and TCP. If client, sends message using UDP, sequence of method calls in client is socket(),bind(),sendto(),recvfrom(),close() and that in server is socket(),...

19
голосов
5ответов
14864 просмотров

Heartbeat Protocols/Algorithms or best practices

Recently I've added some load-balancing capabilities to a piece of software that I wrote. It is a networked application that does some data crunching based on input coming from a SQL database. Since the crunching can be pretty intensive I've added the capability to have multiple instances of this...

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

Retrieving the local IP address based on HttpConnection using Java

Is there any way to determine the IP address of the socket used to create the HTTP connection when the class used to create the connection was HttpUrlConnection?

3
голосов
5ответов
1210 просмотров

Unit Testing Network Connection

I am doing a unit testing and I need to find a way to simulate a disconnection during DB transactions without actually or physically removing the network cable..The process must be automated since this is just part of a bigger scale of unit testing. I need to check if roll backs are handled accor...

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

how to export data to computer(PC) using wifi or http connection?

I have made Iphone applicatio. In my application whatever data i have recorded; all that data i want to export to the Computer using the application. Is there any way available to sent data to computer using wifi using developed application? Can we use Bluetooth or Http connection to send applic...

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

Windows Process and Ip Address that it's connected to

I'm trying to get the ipaddress that a process is connected to in c#. Is there an easy way to do this?

-1
голосов
1ответов
506 просмотров

Looking for a framework for logging arbitrary objects in heavily distributed and parallelized system in .NET

(Note: I have seen several questions regarding .NET logging frameworks, but haven't seen any which resembles our requirements. So please don't close this one as a duplicate.) We will need a logging framework for a highly distributed and parallel .NET application with the following features: ...

7
голосов
2ответов
2819 просмотров

What is the purpose of the AI_V4MAPPED flag in getaddrinfo?

The getaddrinfo call has many interesting flags. I'm wondering what the purpose of the AI_V4MAPPED flag is. On no system do I seem to be able to get getaddrinfo to produce ::ffff:n.n.n.n form addresses as I would expect when I set this flag. Am I expecting the wrong thing? Am I seeing bugs? ...

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

How to handle buffering data read from the network?

When reading data over the network, you specify a buffer to receive the data into: byte[] b = new byte[4096]; socket.Receive(b); Now my first thought is of course to reuse the receive buffer by declaring it as a member variable of the class. My next issue is that I have not received all of the...

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

Internet Board Games

Hello I'm looking to create a web-page where users can play Gomoku live with eachother, kind of like instantchess.com, or yahoo's online pool. I would like to be able to.. 1) Have the players to chat with each other while they play. 2) Have registered users where a ranking can be kept track of. ...