Questions tagged [Sockets] (519)

6
answers

Data exchange between PHP and the server application in C++ with Qt4?

You need PHP on the server to transfer application data via SSL, wait for response data and display them on the screen. Wrote this code in PHP:<?php error_reporting(E_ALL); $fp = fsockopen("ssl://localhost", 6000); $send = "hello"; fputs($fp, $send); $html = fread($fp, 1000000); fclose($fp); echo "<pre-->".$htm...
theresa97 asked October 10th 19 at 14:56
7
answers

Design find out and chat

The challenge is to do something like chat. For example, there are hundreds of people who have the ability to connect to the server via sockets (not interested in the web and the comet, namely the sockets). When one of them sends a message to the server, it is forwarded to others. Faced with the fact that I do not know how ...
Melody.Spenc asked October 10th 19 at 13:07
1
answer

IIS: how to organize simultaneous work with network and service http requests?

When using sockets (on the order of ~200 tcp clients) on the web server increases the request processing time from the client (silverlight) on a web server, some of them sovershayutsya at TimeoutException (timeout expired). Also when you connect to a tcp client with a web server is not always possible to establish the conne...
Dolores_Gulgowski asked October 10th 19 at 07:32
3
answers

FIFO-pipes and Unix Sockets?

What is the difference between named fifo pipe and UNIX-sockets? In fact the designation of one and the same representation both as a inode in the file system.
Edgar_Grady asked October 10th 19 at 05:56
5
answers

Realtime framework for the web applications?

Friends, tell me, please, how do you provide realtime in your applications / websites? Websockets, long polling, iframes, flash? I would like to know about this that would work correctly in most browsers and can work with separate channels (user groups). Ajax Push Engine is all good, but pulls a MooTools. Node.js + Socket.i...
Abbigail99 asked October 10th 19 at 05:08
1
answer

Transports COMET and Websockets

Writing a paper on the COMET, and the question arose, what approaches to implementation should be addressed. According to javascript.ru the list is as follows: 1. Polling 2. Long-poll 3. Infinite IFrame 4. XMLHTTPRequest (interactive) 5. Multipart XMLHTTPRequest 6. Young approach Server-Sent Events But what about websocket...
Melody.Spenc asked October 10th 19 at 04:09
1
answer

Python multicast receiver — duplicate packets

Have a script that opens a socket and reads from it the multicast (taken from here) import socket import struct MCAST_GRP = '224.1.1.1' MCAST_PORT = 1234 sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM, socket.IPPROTO_UDP) sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.bind((", MCAST_PORT)) mreq =...
vicente_Willms20 asked October 10th 19 at 04:06
2
answers

Reconnect to the server on asynchronous sockets in C#

You have a server implemented using asynchronous sockets. Work only with 1 client. Connection, receiving and transmitting are working well. A little lightweight task, before disabling the client sends the string "DISCONNECT". Question: how do I reconnect? For example, the client disconnects and reconnects after a while. ...
amelie.Howell asked October 9th 19 at 23:42
2
answers

Communication with http proxy using sockets in Python

The problem is simple — want to send a POST request via http proxy in Python for the socket, but there are various error SocketError, or the code just hangs on the transmission (send/sendall) or receiving (recv/recvall) data. Tell me, what is the reason for this behavior (or even better, advise a working version)?
edison.Barton asked October 9th 19 at 22:49
1
answer

Periodically not open a socket between two debian machines

Hello! There are two machines under Debian. One acts as client, another as server. Recently there was a problem: about one time out of five to ten (in the test of 925 sterling attempts 87 times the socket is not opened) socket is not created, and decreases with the timeout (error 110). It does not matter, than to create/to ...
Dan_Botsford asked October 9th 19 at 16:42