Click here to Skip to main content
Page 1 of 13
Page Size: 10 · 25 · 50


Tag filtered by:  Networking [x]
Question 12 May 2013   license: CPOL
I had been working on a Server Client aplication where Server is going to service(sendto + receivefrom)'x' number of Clients at a time. For this purpose, I have created 'x' number of threads on Server side so that each thread is dadicated to one single client. Inside each thread there is a...
Answer 12 May 2013   license: CPOL
I think that using threads with blocking sockets instead of asynchronous API is much better. In most cases, communication is sequential in its nature and the flow of operations is logically independent from other threads. Therefore, using a separate thread for each communication channel (in case...
Question 10 May 2013   license: CPOL
I want to add this feature to my application. It works OK but I'm afraid of a problem here. At first, I'll talk a little about how I implement the feature. Simply, the user has to register his email address first (at the registration time). If he loses his password, he can click on a link to...
Answer 10 May 2013   license: CPOL
See http://msdn.microsoft.com/en-us/library/windows/desktop/ms741540(v=vs.85).aspx[^] for a complete description of how these events are generated and consumed.
Question 9 May 2013   license: CPOL
I am working on newtwork event based socket application. When client has sent some data and there is something to be read on the socket, FD_READ network event is generated.Now according to my understanding, when server wants to write over the socket, there must be an event generated i.e....
Article 6 May 2013   license: CPOL
C++ SMTP client, support SSL and TLS encrypted connection to SMTP server
Answer 3 May 2013   license: CPOL
Is that article good enough: http://en.wikipedia.org/wiki/IP_Subnetting[^]?—SA
Question 3 May 2013   license: CPOL
what is meant by IP subnetting! how it is performed.what is the purpose.
Technical Blog 1 May 2013   license: CPOL
Networking and Socket programming tutorial in C.
Answer 30 Apr 2013   license: CPOL
Assuming that you have them saved in a file and you know the location to it. You could try this:public string ReadFile(string Location){ using(StreamReader Reader = new StreamReader(Location)) { return Reader.ReadToEnd(); }}public byte[] GetPacket(string Packet){...
Answer 30 Apr 2013   license: CPOL
It depends on how much clients do you expect and how large messages will be sent.The issue is that UDP does not guarantee delivery of data by itself, so some packets could be dropped.http://technet.microsoft.com/en-us/library/cc785220(v=ws.10).aspx[^]Simultaneous data sending both by...
Question 30 Apr 2013   license: CPOL
These are the packets which I captured using Wireshark and I saved them as a text file named "latisha.txt""No.,""Time"",""Source"",""Destination"",""Protocol"",""Length"",""Info""""1,""0.000000000"",""106.10.199.11"",""192.168.1.100"",""HTTP"",""1506"",""Continuation or non-HTTP...
Question 30 Apr 2013   license: CPOL
How can we send packets captured by wireshark to a definite port using any programming language?I have captured packets using Wireshark. Now I have to analyze those packets into 3 classes of IPs and send those packets to different ports. How can I do that?If anyone knows the answer, please...
Question 30 Apr 2013   license: CPOL
I have developed a udp application in which a single server is able to handle 'x' number of clients. Inside my server, there is a primary thread keeps on receiving requests/data continuously from the clients and keeps saving the information of each client in a list.As soon as a request comes...
Answer 29 Apr 2013   license: CPOL
There are many things that can make a process, not just a UI component, unresponsive. The solution depends upon what is causing the problem. This is a classic case of needing to analyse and debug.First thing to do is see if you can reproduce the problem. From your post it sounds like this...
Question 28 Apr 2013   license: CPOL
I made a Download Manager using Java Swing. The GUI becomes unresponsive after a while. Every download is implemented as a new thread. Only the GUI updates are run on the Event Dispatch Thread. How can I improve GUI performance of a swing program, in general. Also are there any good tools to...
Question 23 Apr 2013   license: CPOL
Hi, I am developing a website Using MVC 4, this website will be accessed by mobile (Smartphones) users only. Is it possible to trace or guess a user's current access point which is in the building?Is there any Specific Network configuration of routers/access point required which we need to...
Answer 22 Apr 2013   license: CPOL
Yes, you can. Each package going up has to spend energy to work against gravitation. The energy needed to move up is equal to m×g×h, where g is the gravitational field of the Earth, the same as the acceleration of the free falling body and h is the elevation, and m is the mass of the package....
Answer 22 Apr 2013   license: CPOL
Hi, Your questions are very broad, so if while answering I cover parts that seem obvious, or that you already know, please forgive me.1.) What is socket programming, and is this what I needA socket is a logical construct (class or object) that we use to communicate between computers...
Answer 21 Apr 2013   license: CPOL
If you already have a chatprogram that works on your LAN that uses sockets you can just open up the ports in your firewall(s) to allow the traffic to be send and received. As long as you don't use any ports below 1024 you should be fine.Anyone will be able to connect to that port though so...
Answer 21 Apr 2013   license: CPOL
TCP header itself is of 10 feilds as below and size may vary between 20 to 60bytes 1.Source port - 2 bytes2.destination port - 2 bytes3.SEQ NUM-4 bytes4.ACK NUM- 4 bytes5.HLEN-1 word6.RESERVED-6bits7.CONTROL-6bits8.WINDOW SIZE-2 bytes9.CHECKSUM-2 bytes10.URGENT...
Question 21 Apr 2013   license: CPOL
I built a tcp chat program for a Local area network(LAN)I want to expand the program outside the LAN so i can acces it from anywhere in the world if i have to. My questions are: - what is socket programming and is this what i need- how can open a port to allow trafic to be sent and...
Question 19 Apr 2013   license: CPOL
I have a single asynchronous socket at my server side. whenever there is something to be read or written on the socket, a window's message is generated. Right now there is only one single asynchronous socket on the server that handles requests of more than one client I guess. But I am not sure...
Question 19 Apr 2013   license: CPOL
I have developed a single server multiple client udp application using multithreading. Now I want to implement the server using asynchronous sockets so that it may be able to handle multiple clients at a time. Will this approach work fine? Is it correct to use asynchronous socket if you want to...
Answer 15 Apr 2013   license: CPOL
Your approach is reasonable. Keep the sending and receiving threads simple.Use queues to buffer the data for the clients. Create a queue for each client. You could have a pool of threads, then processing incoming packets from those queues. As CPallini mentions, you could create a...
Answer 15 Apr 2013   license: CPOL
I just found that Wix can register exceptions in the Windows firewall. So it might be a good option. Here is the link about that capability: http://wixtoolset.org/about[^]For more information, you'll have to look at documentation....
Answer 15 Apr 2013   license: CPOL
The other, quite obvious, approach would be creating a thread per client (well, two threads per client).The adavantage would be a somewhat simpler code.
Question 15 Apr 2013   license: CPOL
I am working on udp server/cient application. I want my Server to be able to handle 40 clients at a time. Right now I am using the approach of creating one receiving thread which continuously receives data and one sending thread for sending data if required. Since the socket queue is large...
Answer 13 Apr 2013   license: CPOL
You aren't really timing the data transfer speed - you are timing the transfer of data from a buffered stream to a memory block. The difference is that if the stream is already pre filled with more bytes than your buffer can hold, then the time you get is only that taken to copy the stream data...
Answer 13 Apr 2013   license: CPOL
n is the number of bytes, not the number of kilobytes. So, first divide n by 1024 (1 KB = 1024 B), and then calculate the speed:float kb = (float)n / 1024;Speed = kb / sw.Elapsed.TotalSeconds;Hope this helps.
Question 13 Apr 2013   license: CPOL
I'm writing a program that downloads stuff from the internet. While the program is working fine, I want to get one critical part reviewed. I use System.Diagnostics.StopWatch object to measure the time taken for the ns (NetworkStream) object to read the bytes in buffer. I then divide the number...
Answer 13 Apr 2013   license: CPOL
I know, that Google is your brother. When i type: "access point programming" phrase, i got many results.Here you are 2 of...
Question 13 Apr 2013   license: CPOL
hi there!I have to create a wireless access point software. Not a firmware, a software a code which i will run on a desktop pc with wlan cards and it will then act as a wireless access point.I dont have any knowledge about it. I dont know how to program it with which particular tools and...
Answer 12 Apr 2013   license: CPOL
Finally, this thread can be finsihed. I found a way to do that by injecting the program into a trusted process such as explorer.exe ,a native process to all windows OS.This would have been flagged as a Malware by most Anti-Virus but as this was a Legal program. I have digitally signed it....
Answer 12 Apr 2013   license: CPOL
I know I am going to regret this but (Mr. White Hat) the ways that come to mind are:(1) Use a different port that is not blocked by the firewall.(2) Find or use a known proxy server that will translate your acceptable port into the denied port(3) If IP is blocked, see if UDP, ICMP etc. are...
Answer 12 Apr 2013   license: CPOL
You can't - that is the whole idea.A firewall is there to stop all applications that do not have a good reason from getting access to computers or networks. If your app could "bypass" it, then so could malicious applications, which none of us want.You can configure firewalls to let...
Question 12 Apr 2013   license: CPOL
Hi,I am currently having problems, with accepting connections. I have developed a Client & Server Application. When I tested my Application on Local host it worked great but when working remotely the firewall does not accept any connections. I have thoroughly looked and it says Firewall...
Question 12 Apr 2013   license: CPOL
Hi,I was looking forward to fetch TcpStatistics of the the system connected to same Wifi network.I am getting list of Ip addresses and their Machine name but i need to get the statistics of the active connections.Thanks in advance.
Question 11 Apr 2013   license: CPOL
I have developed a udp server/client application in which server has one socket at which it continuously receives data from 40 clients. Now I want to know that what happens if all of the 40 Clients send data at a time? According to my understanding, data must be queued in receive buffer and next...
Answer 11 Apr 2013   license: CPOL
You probably have seen that as example in a Unix-based application. There the function sethostname exists, (although it would be called with strlen (name) as second argument, and not with sizeof (name).For an equivalent in the Windows world, CPallini has given you already the correct link.
Answer 11 Apr 2013   license: CPOL
According to the winsock documentation[^] there is no such function.
Question 11 Apr 2013   license: CPOL
I want to set the name of my local host. I am using sethostname() function but I get an error as follows:error C3861: 'sethostname': identifier not found.Below is the code snippet:WSADATA wsa;///Initialise winsock///if (WSAStartup(MAKEWORD(2,2),&wsa) != 0) { //Socket...
Answer 10 Apr 2013   license: CPOL
This is the wrong way to do it, you should use a non-blocking socket (see http://msdn.microsoft.com/en-us/library/windows/desktop/ms740121(v=vs.85).aspx[^]). Keep a state table for each client and whenever a message is received mark the time in the table. Check your state tables periodically and...
Question 10 Apr 2013   license: CPOL
I am working on udp server/client application. For finding out if any of the client is down, server sends a handshake message to the client. Then, the server waits for the response of client to send some data to assure that the client is active. For this the server blocks in call to recv_from()...
Answer 4 Apr 2013   license: CPOL
Another homework question of the day? Same post by another member in 2 min: IP address assignment to server[^]It does not work like this here.Here is what is expected of enquirers:1. TRY first what you want to do! You may find that it's not that hard.2. Formulate what was done by you...
Answer 4 Apr 2013   license: CPOL
Hi there,You need to look into 'FTP'.The conventional web we browse is based on 'HTTP' is designed for viewing text, images, etc. but not for file transfer. 'FTP' is designed this in mind and if you can access your server using FTP you should be able to do most of the operations that you...
Question 3 Apr 2013   license: CPOL
Hi,I am trying to develop an application to synchronize two directories of the two live domains hosted over different servers but i am not getting the logic to implement.I have tried it to do with tcp client server on localhost using different applications on different ports, but its not...

Page 1 of 13
1 2 3 4 5 6 7 8 9 10


Advertise | Privacy | Mobile
Web01 | 2.6.130513.1 | Last Updated 14 May 2013
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid