client

¿How can I send and recieve strings from tidtcpclient and tidtcpserver and to create a chat?

♀尐吖头ヾ 提交于 2019-12-20 06:34:21
问题 im new at delphi languaje and im using Rad Studio to make apps work on every device with oune single programming. Right now Im supposed to make a chat using sockets, I made a chat for windows only using tclientsocket and tserversocket using the next code, what Im trying to do is make the exact thing but using tidtcpclient and tidtcpserver instead of tclientsocket and tserversocket Server: unit Server; interface uses Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System

REST in Unity (send messages from webserver to unity)

走远了吗. 提交于 2019-12-20 06:33:09
问题 Is there a way to have a simple webserver send messages to Unity? At the moment, we're doing a GET using UnityWebRequest.Get() in the update method. Here's the code: // Update is called once per frame void Update () { StartCoroutine(GetData()); } IEnumerator GetData() { UnityWebRequest uwr = UnityWebRequest.Get(url); yield return uwr.Send(); if (uwr.isError) { Debug.Log(uwr.error); }else { Debug.Log((float.Parse(uwr.downloadHandler.text) / 100)); fnumber = ((float.Parse(uwr.downloadHandler

How do you download the same image you sent to a server back to the client?

允我心安 提交于 2019-12-20 05:54:25
问题 I have two projects; one for my server and one for my client, I am able to send images to the server with ease. But I am wondering how would you be able to download that image you just sent to the server back to the client when I press the download button I have created on my client GUI? My code is written in java. Many Thanks This is my serverhandler String fileName; fileName = "RecievedImageoutreach1.jpg"; DataOutputStream dout = new DataOutputStream(sock.getOutputStream()); //Coding for

How do you download the same image you sent to a server back to the client?

◇◆丶佛笑我妖孽 提交于 2019-12-20 05:54:22
问题 I have two projects; one for my server and one for my client, I am able to send images to the server with ease. But I am wondering how would you be able to download that image you just sent to the server back to the client when I press the download button I have created on my client GUI? My code is written in java. Many Thanks This is my serverhandler String fileName; fileName = "RecievedImageoutreach1.jpg"; DataOutputStream dout = new DataOutputStream(sock.getOutputStream()); //Coding for

too many open files when making http requests

别等时光非礼了梦想. 提交于 2019-12-20 05:44:07
问题 I am trying to create a http client program in go which would make many http GET requests. I am using a buffered channel to limit the number of concurrent requests. When I run the program I get Get http://198.18.96.213/: dial tcp 198.18.96.213:80: too many open files Here is my program: package main import ( "fmt" "net/http" "time" ) func HttpGets(numRequests int, numConcurrent int, url string) map[int]int { // I want number of requests with each status code responseStatuses := map[int]int {

Android Socket Client didn't send and closes itself

限于喜欢 提交于 2019-12-20 03:52:25
问题 I am pretty new to android and java programming and I need your help. I want to create an Android client and a server on my PC (Windows 7). I checked with putty (a program which imitates a client (without programming mistakes^^)) whether my server is programmed without mistakes. Thereby I recognized that my server is programmed correctly. Here you can see my well-working server: public class MyServer { public static void main (String[] args) throws IOException { ServerSocket serverSocket =

PHP Websocket on Webserver

◇◆丶佛笑我妖孽 提交于 2019-12-19 18:55:11
问题 A few days ago I setup this WebSocket server from http://code.google.com/p/phpwebsocket/ It works excellent on my localhost by using Xampp. Then, I uploaded it to my webspace on Strato, but now I am not able to connect to the server. I changed the the sockets connection to my domain but it didn`t work Client.html: var host = "ws://xxxxxxxx.com:12345/Websocket/server.php"; Server.php: $master = WebSocket("xxxxxx",12345); I already tried it with different port(80,443,12345,8080,8000....), using

Python - Server and client problems

蓝咒 提交于 2019-12-19 11:59:14
问题 I'm trying to create a basic server and client script. The idea is that the client can connect to the server and execute commands. Kinda like SSH but very simple. Heres my server code: import sys, os, socket host = '' port = 50103 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((host, port)) print("Server started on port: ", port) s.listen(1) while (1): conn, addr = s.accept() print 'New connection from ', addr try: while True: rc = conn.recv(2) pipe = os.popen(rc) rl = pipe

Unable to use libcurl to access a site requiring client authentication

狂风中的少年 提交于 2019-12-19 08:14:16
问题 I’m using the below snipped for setting the certificate and key for client authentication. curl_easy_setopt(curl,CURLOPT_SSLCERT,"clientCert.pem"); curl_easy_setopt(curl,CURLOPT_SSLCERTPASSWD,"changeit"); curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM"); curl_easy_setopt(curl,CURLOPT_SSLKEY,"privateKey.pem"); curl_easy_setopt(curl,CURLOPT_SSLKEYPASSWD,"changeit"); curl_easy_setopt(curl,CURLOPT_SSLKEYTYPE,"PEM"); The certificate doesn’t have a password, I don’t know why on earth the option

Unable to use libcurl to access a site requiring client authentication

不问归期 提交于 2019-12-19 08:14:11
问题 I’m using the below snipped for setting the certificate and key for client authentication. curl_easy_setopt(curl,CURLOPT_SSLCERT,"clientCert.pem"); curl_easy_setopt(curl,CURLOPT_SSLCERTPASSWD,"changeit"); curl_easy_setopt(curl,CURLOPT_SSLCERTTYPE,"PEM"); curl_easy_setopt(curl,CURLOPT_SSLKEY,"privateKey.pem"); curl_easy_setopt(curl,CURLOPT_SSLKEYPASSWD,"changeit"); curl_easy_setopt(curl,CURLOPT_SSLKEYTYPE,"PEM"); The certificate doesn’t have a password, I don’t know why on earth the option