I'm currently writing a project in Python which has a client and a server part. I have troubles with the network communication, so I need to explain some things...
The client mainly does operations the server tells him to and sends the results of the operations back to the server. I need a way to communicate bidirectional on a TCP socke...
The title says it all. This is one of my assignments and I need some help in getting started. The basic idea behind the assignment is that I have to design a self destructible email program that is capable of destructing the message after (n) time duration.
Speaking about self destructible emails, there are quite a few ones on the inter...
The following code waits for data over UDP. I have a test function that sends 1000 packets (datagrams?) of 500 bytes each. Each time I run the test function, the receiver gets only the first few dozen packets but drops the rest. I looked at the incoming network data using Wireshark and I see all 1000 packets are actually received, but ju...
Hello everyone!
I am currently working on a homework assignment and I am thoroughly stuck. I am on the last question and I just can not figure out how to go about accomplishing the last task. Below is the tasks I had to complete:
The client should
save the file in the "client"
subdirectory of the home directory.
Test your program....
Think of the following services on one box:
SOCKS proxy
HTTP proxy
SSH service
VPN service
I have found a case where it would be beneficial to run all of these services on the same box (save on high server costs w/ low usage), but they all need to listen on port 80 (network security restrictions require it).
I'm a proficient java d...
Hi,
I'm using C++ to develop the server side of a game which multiple servers need to communicate with each other using Publisher/Subscriber pattern. Each server subscribes to some events on different servers. All servers are located on the same network so latency and packet-loss should be very low. The inter-server communication should...
I'm developing a DLL in C++ which needs to write some data via a (previously established) TCP/IP connection using the write() call. To be precise, the DLL should send a little 'Process 12345 is terminating at 2007-09-27 15:30:42, value of i is 131' message over the wire when the process goes down.
Unfortunately, all the ways I know for ...
As those familiar with network device drivers are aware, the interface between the kernel and driver has been changed to use NAPI (New API). In this paradigm, a polling function is associated with a napi_struct, which is a new structure that must be allocated by the device driver. At any rate, I have an old driver and don't have the ti...
when send() returns, there are three possibilities:
1. the data to sent has been copied to the kernel buffer
2. the data to sent has been sent to peer
3. the data to sent has been sent to peer and received its ack
Being really confused, I read some pieces of code about TCP/IP stack in Linux source, and I found the path of the data st...
Basically, i want to change settings in a routers settings page as found in common soho routers and i am unable to even get past the first step! that is, going to the page without prompting the user for their username and password (this is a must), you can assume i have the user/pass details.
so i tried to access this page for instance....
I am using performance counters to get values on LAN like this:
PerformanceCounter available = new PerformanceCounter("Memory", "Available MBytes", "", ipAddress);
but I cant get the total RAM size, I need usable persentage like %75 etc...
are there any way to do?
...
I am accesing to all off the computers on my lan and geting performance counters, but some of server computers doesnt give me true values they returns 0. is there any setting for this?
note: firewall status is close for servers.
here is a code sniplet from my application:
PerformanceCounterCategory pcc = new PerformanceCounterCategory...
I have used the select() function to implement servers, but now I have to implement it by myself (as a part of a project).
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout);
Can anyone please help me to implement this function? Any sources, articles? Can anyone explain what is happeni...
I'm making a relatively simple program which will also be running on a few friends computers and they need to share some information. They will need to exchange ips in case they are changed via dhcp and maybe a few other things in the future, but right now that's it (this will likely be used to update the program if I ever change it too ...
I was wondering how to, using C, find out what port a client is currently listening to. ie, I want to know what the source port is, not the destination port.
Thanks in advance!
...
I've been searching for a while but it seems to be difficult to find any definite answers on how to recover from exceptions thrown by calling NamedPipeServerStream.BeginWaitForConnection. I have an application that sets up a named pipe server on a well known name and listens for messages to perform certain actions.
It works fine and da...
I established a TCP client server connection in python where the server sends code to the client and the client evaluates the code sent.The code is sent from a file in the server. While runnig the code, it works fine at times, but at times the client code doesn't work.. It gets stuck.. Is it some problem with the network connection or th...
I want to know how this is handles or if there is a standard?
...
Hi, I have an application that I wish to use over windows. I am using AF_UNIX family un windows. I wish to know that AF_UNIX family is available in windows. If not then is there any alternate to AF_UNIX ?
Thanks
Arpit
...
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...