Hi All,
I am using a stack for embedded systems and implementing TCP/IP application using it. But I am having a problem, the problem is that the stack doesn't supports SO_KEEPALIVE option and I want to use it. Can anyone suggest the implementation for this option or any other alternative option which can be used for same function?
If so...
I'm having trouble implementing a connect timeout using asynchronous socket calls.
The idea being that I call BeginConnect on a Socket object, then use a timer to call Close() on the socket after a timeout period has elapsed.
This works fine as long as the socket is created on the GUI thread - the Close method returns immediately, and ...
Hi. I currently need to make the silverlight 4 in-browser app that can receive push messages from the server. I presume using sockets is the best way, and will also allow a connection between server and client to transfer data and update the page.
But I am worried about firewalls and/or proxy servers.
Is it possible to have push technolo...
I understand that for TCP sockets ECONNRESET has got something to do with RST packets. But I've seen ECONNRESET errors for AF_LOCAL sockets too, on read() and write() calls. What does this mean? How is ECONNRESET different from read() returning 0 or write() throwing EPIPE?
...
Hi,
I am testing an app that connects through an asynchronous TCP socket to an C# server
and sends 1 byte every 30 sec (implementing a heartbeat).
After about an hour later the app had sent 132 packets (of one byte) to the server,
the packets have been received ok. The iPhone app connected once to the server and after that sent the packe...
I keep hearing all this hype about Twisted for python, but i just find it plain confusing. What do you think is more simple to use? Simple sockets or implementing twisted ?
...
I want to start the development of a web server using the Scheme language, but I need to have the basics knowledge of the web server, using the sockets and a little about the optimizations.
...
I have a script that scans ports for open proxy servers. Problem is if it encounters a login program (specifically telnet) then it hangs there forever since it doesn't know what to do and eventually the server closes the connection.
The simple solution would be to create a bunch of cases. If telnet, do this. If SSH, do that. If some...
Does anyone know of any open source C# projects or some sample code that implement a synchronous HTTP client using sockets?
I'm working on a project where I need a HTTP client using sockets. It can't use WebRequest or WebClient, nor can it use Asynchronous sockets. Don't ask. Also it would ideally be on .NET 2.0, yeah very cutting edg...
I am calling ::connect() on a special application port in my application and it works fine in general, however, between two particular machines, from one to the other, it fails with EHOSTUNREACH which means "No route to host."
If I can ssh on port 22 with no problems, what might be going on here that ::connect() always fails for this pa...
I am doin a Some Socket Programing Stuff in Java..
Here i have created a button(Create Server)..and when i click it ,it starts server...but i want to change the button name to (Stop Server) after Starting the server...
so i did this..
but when i press start server it starts and the button name remains the same...
and when a client gets ...
I need to write a server which accepts connections from multiple client machines, maintains track of connected clients and sends individual clients data as necessary. Sometimes, all clients may be contacted at once with the same message, other times, it may be one individual client or a group of clients.
Since I need confirmation that t...
Hi everyone there, can anybody tell me how to make file descriptors behave like atm nodes in /dev directory. Since i dnt have atm switch to test my program, i have to test with normal files, is there any method to make special type of file descriptors that behave like atm nodes.
...
Hello,
May be i am not able to express my doubt properly in this question but still i will try. Basically i created a simple socket based chat program and everything works fine. But i think i have made many patches in it from the design point of view.
I have used ObjectInputStream and ObjectOutputStreams in my program. The question i w...
I want to have a robot fetch a URL every hour, but if the site's operator is malicious he could have his server send me a 1 GB file. Is there a good way to limit downloading to, say, 100 KB and stop after that limit?
I can imagine writing my own connection handler from scratch, but I'd like to use urllib2 if at all possible, just specif...
Hello I've been messing around with Sockets in Ruby some and came across some example code that I tried modifying and broke. I want to know why it's broken.
Server:
require "socket"
dts = TCPServer.new('127.0.0.1', 20000)
loop do
Thread.start(dts.accept) do |s|
print(s, " is accepted\n")
s.write(Time.now)
print(s, "...
How do I get the ports that a process is listening on using python? The pid of the process is known.
...
Hello,
We need to write software that would continuously (i.e. new data is sent as it becomes available) send very large files (several Tb) to several destinations simultaneously. Some destinations have a dedicated fiber connection to the source, while some do not.
Several questions arise:
We plan to use TCP sockets for this task. Wh...
I'm developing a diagnostic tool on a PC with several Network Interfaces based on multicast/udp. The user can select a NIC, the application creates sockets, binds them to this NIC and adds them to the specific multicast group.
The sending of multicast messages works fine. However receiving of messages only succeeds if I bind the sockets...
I'm currently working on a project which involves multiple clients connected to a server and waiting for data. I'm using select and monitoring the connection for incoming data. However, the client just continues to print nothing, acting as if select has discovered incoming data. Perhaps I'm attacking this wrong?
For the first piece of d...