server

Python, How to Send data over TCP

让人想犯罪 __ 提交于 2019-12-20 10:54:38
问题 I need to create a simple server that listens for TCP connections. If it receives text on<EOF> or off<EOF> then it sends (echo) back success . The receiving part is working, but now i need it to send back success . Code: # import threading import SocketServer class TCPHandler(SocketServer.BaseRequestHandler): def handle(self): self.msg = self.request.recv(1024).strip() if self.msg == "on<EOF>": print "Turning On..." #ECHO "SUCCESS<EOF>" <----- I need the server to echo back "success" if self

Server http:/localhost:8080 requires a user name and a password. The server says: XDB

拈花ヽ惹草 提交于 2019-12-20 09:55:53
问题 I am trying to access localhost:8080 but it is showing me I need to enter user name and pass word. I remember messing up with the server some 4 months ago while I was trying to develop a web application and hosting my domain name on my pc, Unfortunately I become unsuccessful. While working with servlets I was tring some security features and till some time i did not see and of these pop up windows asking for authentication. I tried to enter the password that I was playing with but non of

PHP code gets errors in server but works fine in local

南楼画角 提交于 2019-12-20 07:47:54
问题 I have my site running well on my local but when I uploaded it, the php code gets some error, Warning: mysqli::prepare(): Couldn't fetch mysqli in /home/gh/public_html/abida/C/login.php on line 15 Fatal error: Call to a member function bind_param() on null in /home/gh/public_html/abida/C/login.php on line 16 <?php require '../api/dbcon.php'; require '../api/apiOnly.php'; if(session_id() == '' || !isset($_SESSION)) { // session isn't started session_start(); } //FACULTY - USER LOGIN if(isset($

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

please explain this error log

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-20 05:43:14
问题 i have domain in godaddy and i am trying to install a script in my dedicated server or trying to access my domain righttimematrimony.com it is not loading and showing errors. one time my website loaded and shown sci-bin folder, after upload the data into server and tried to access my url, but shown lot of errors. please somebody help me what to do now. This is the data in error log found at Cpanel -> Error Log. [Mon Dec 29 04:14:23 2014] [alert] [client 106.66.138.199] /home/right/public_html

PHP _Session variable no longer persistate

烂漫一生 提交于 2019-12-20 05:37:11
问题 I have wrote a code that has been working for the last past 3 month. Now suddenly, I noticed that my PHP _Session variable no longer persists between the different page for my login. Please note that the code actually works on local, but not on my server (papahost). Here's a very simple version of what i'm trying to do (SESSION persists from class A to B): class function.php <?php function sec_session_start() { //other code goes here session_name('sec_session_id'); $secure = SECURE; // This

PHPMAILER SERVER ->SMTP ERROR: Password command failed SMTP connect() failed

十年热恋 提交于 2019-12-20 04:25:24
问题 im trying to send an email just when somebody enters on a page. It's for paypal payment confirmation. You pay something and in the page where you see what you did an email is send automatically. The code is the next: function send_email($from, $to, $subject, $nombre,$apellido) { $pagoReal = $_SESSION["Payment_Amount"]; $monedaReal = $_SESSION["currencyCodeType"]; $estado = $_SESSION['estado']; $id = $_SESSION['idHash']; $mail = new PHPMailer(); $mail->SMTPDebug=3; $mail->IsSMTP(); $mail->Host

Memory usage doesn't decrease in node.js? What's going on?

孤人 提交于 2019-12-20 04:05:36
问题 I am tracking the memory using task manager and my app is a webrtc app using socket.io. So when I track the memory and open localhost, connect two browser windows, it obviously adds a little bit of memory. I think it starts at like 19.3 MB and then adds 0.5MB for each connection. HOWEVER! When I close out of the connection, so no more localhost windows are open, it never decreases in memory usage! So if it goes up to 20MB or something, then it will stay there and never ever decrease. Why is