networking

Networking with C++

Hey, I'm a newcomer to using C++ but have got a general Idea of its syntax and useability. I want to learn how to communicate over networks through C++ programming though but I can't seem to find any tutorials for C++ specifically. Does anyone know any good resources to learn about networking with C++ or what I should start with? Thanks...

Finding matching IPv6 addresses based on an input string.

Hi, I need some help with finding network interfaces based on a provided IP address. I need a cross-platform way to reliably find the local interface that has the given address in both IPv4 and IPv6 formats. I created the attached program to take an IP address as a string and search through the results of getifaddrs. The reason is th...

how to compare two endpoint address with C++ in windows:

bool checkSockaddr(sockaddr_in a, sockaddr_in b) check if they two have the same address information. ...

Best way to do RAW socket programming involving Java.

I have some existing C code that uses ICMP raw sockets to do Ping and I need to use this code in Java as Java does not support ICMP packages. When I wrap the code in JNI and call it, the C code fails to obtain the socket when doing: socket(AF_INET, SOCK_RAW, 1); I guess that Java has dropped some privileges that disables the use of raw...

Using Haskell's SimpleHTTP with a Proxy?

I'm trying to figure out how make a basic GET request using Network.HTTP.simpleHTTP that will use a proxy. I have tried setting the http_proxy environment variable, and I think I understand how to make a Proxy using Network.HTTP.Proxy. But there seems to be nothing in the API on Hackage for how to set a simpleHTTP call or Request type ...

monitoring network pcs

I am well aware that employers monitor content and activity of their employees; I was just wondering though if its possible to know when someone has remotely connected to your pc or is monitoring your pc virtually. I tried looking at the task manager but its hard to determine which process this is and of course it does not have to be in ...

Working with binary data in PHP

I'm writing a client for a binary socket protocol in PHP, and it's a pain. I'm currently using pack to convert numbers into binary strings, but it's lacking. Two options pack has are: Write a signed 32 bit integer in machine byte order Write an insigned 32 bit integer in big endian byte order But I need to write signed 32 bit integer...

Convert 8 bytes to a signed long (64 bit)

I'm reading 8 bytes from a socket in PHP, and want to transform them into a 64 bit signed integer. How can I do this in 64 bit PHP? unpack doesn't support 64 bit numbers In 32 bit PHP, is there a way to make it into a string that can be used by BCMath? ...

How Does XMPP Push Data To a Client?

Can anyone explain how an XMPP server pushes data to an XMPP client? This client will most likely be behind a firewall and will not have its own IP on the Internet so how can the client be notified? Does the client leave a connection open with the server at all times? ...

One thread per client. Doable?

I'm writing a Java server which uses plain sockets to accept connections from clients. I'm using the fairly simple model where each connection has its own thread reading from it in blocking mode. Pseudo code: handshake(); while(!closed) { length = readHeader(); // this usually blocks a few seconds readMessage(length); } cleanup();...

libpcap inter-arrival times and scheduler

I am doing research about network traffic characterization. While processing collected data (captured by tcpdump and saved to a database), I stumbled over the weird phenomenon with packet (or flow) inter-arrival times: Inter-arrival times of 35-170µsec are never observed Of course, without a DAG card (which would do hardware time stamp...

Check if a file is accessable on a shared network drive

Hi, I have a program that does different things my questions is related to access files in a network mapped drive or a shared folder the program can run a file msi/exe from the network (network mapped drive or a shared folder) the program can copy file from the network (network mapped drive or a shared folder) how I can check if the f...

Using own Java software´s custom update implementation

I have a server, and Client that are working fine, they transfer file to each other and handle commands with success. The thing is that once connected to the server, the server can ask the Client to update itself. Since I did everything using sockets with a TCP connection, and I am NOT able to use java web start, I am looking for a way ...

1 Linux PC with two network cards cannot produce network traffic for test system

These questions relate to the basics of networking, but I have not found an answer yet! Question 1: Can a 100Mbps switch handle 2 simultaneous TCP streams running at 100Mbps? To illustrate this if you have 4 PC's on 1 switch (100Mbps with no other connections) and you had two separate streams, what speed would they reach? Would one stre...

Best way to provide options for specifying NIC, determining IP on subnet?

I am writing a C library which involves telling other computers on the subnet to send me messages. Therefore I must announce to them my IP address. This library should work on Linux, OS X and Windows. Currently I'm thinking mostly about the POSIX layer. Given that a computer can have more than one address (for example if it has more ...

Programmatically add port forwarding entry into router using upnp?

Does someone have a simple example on how to add a port forwarding entry with upnp into the router using c++? ...

putty on windows using AF_UNIX

Hi, I have recently downloaded source code for putty for windows client. It is using AF_UNIX address family. AFAIK AF_UNIX socket family is not present in windows. Then how it is working here ? I am working on porting a *nix project to windows which has AF_UNIX socket family. Thanks Arpit ...

accessing my system in home from my office

hi what are all the possible ways of using remote desktop through internet....i was asked to do this without installing vnc and just by routing the router...is this possible...i dont think so...please explain me ...

How do I connect to a local network externally in WIndows 7?

I want to connect to my school's network so I can access all the network drives and some other things. Please help what do I do? I have regualr access everyday to the computers. ...

redirect domain name to local network internal ip (no requirement for external access)

i want to do the following: open a web browser on my local network. type in mydevice.com(or something similar) and have the browser redirect to the actual device (192.168.1.x) the reason is, it really is NOT for me. it is for a product that hosts a web page and i do not want the users to have to type in the IP address. also, i am awa...