Questions tagged as 'socket'

0
answers

(Socket) Client and Server Connection - how to get return from Cmd- Client (Python)

I want to run a command in the client's Cmd and return the values to the server. I've already been able to run the command in the client's Cmd ... Now how do I return the values to the server? The Server: import socket import os Host = "1...
asked by 31.03.2018 / 03:31
1
answer

Socket.BeginSend Using lots of cpu

I have an online gaming server and I have 600 online users, but the cpu is a bit high (using 10 ~ 20% of 26GHz) and the profiler says that this line is using many features Socket.BeginSend(packet, 0, packet.Length, 0, OnSendCompleted, null);...
asked by 28.12.2017 / 06:35
0
answers

JAR converted to exe does not open after being transferred via socket

I have a JAR program that I converted to EXE with Launch4J. The EXE works fine, but when I try to transfer this file via socket it just does not open with 2 clicks. If I use a "java -jar file.exe" it opens normal. Just do not open it by doubl...
asked by 23.12.2017 / 20:28
0
answers

How to send an image correctly via Socket in Python

I'm trying to send an image from the 'dir' directory to another client in my network. Sockets are working properly, the image arrives at the destination and is saved, but when I try to open it I get: "This is not a valid bitmap file." #Cód...
asked by 10.12.2017 / 01:26
1
answer

How to Create a Communication Between Two Clients via Server Using Socket

import socket from threading import Thread def client(h, p): s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) # IPv4,tipo de socket s.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) while True: try: s...
asked by 13.11.2017 / 15:42
0
answers

My code does not send email to Gmail, however it sends to Hotmail

My code for some reason does not send emails to Gmail, well, at least emails do not arrive. This is a college job, I earned the score, so no rush, but this is bugging me, what's the problem? Because I can send to hotmail, but for Gmail I have pr...
asked by 22.11.2017 / 00:31
0
answers

Communication between socket and socket stream

I made the following class: class Socket { private $socket; private $loop; private $enviarMensagem; function __construct(LoopInterface $loop, $enviarMensagem) { $this->loop = $loop; $this->enviarMensagem...
asked by 10.11.2017 / 18:03
0
answers

Communion socket in Windows service [closed]

Next, I have a problem with an application that I am developing, I need to communicate between a Windows service and a web application, the Windows service will stay on the local machine (client) and I need somehow to communicate with this Windo...
asked by 04.11.2017 / 21:31
0
answers

Send and Receive Arduino data for Android via the Internet

I'm working on a project that I have to communicate an Arduino with Android via Internet (Network), I've seen some tutorials on the subject but I could not finish it yet, I would like to help to complete this project. I'm using AndroidStudio....
asked by 12.10.2017 / 20:57
0
answers

Connection via socket only when needed

I have a web application that needs to refresh some values often because the changes have to be available almost in real time. To do this, I run via ajax a refresh.php routine every 15 seconds, which returns the updated information. Time that in...
asked by 18.09.2017 / 20:46