port

Problems opening and closing the mscomm port in vb6 when interfacing microcontroller

核能气质少年 提交于 2019-12-13 06:01:53
问题 the code is to get data from a microcontroller or any device from serial device using serial port,so i am having problem with port opening and getting data,am having this problem for last 20 days please kindly help me at the earliest :) Private Sub Command1_Click() MsgBox ("The port is open " & MSComm1.PortOpen) If (MSComm1.PortOpen = False) Then MSComm1.PortOpen = True End If Command1.Enabled = False Command2.Enabled = True End Sub Private Sub Command2_Click() If (MSComm1.PortOpen = True)

Reading from a port in Java

不羁的心 提交于 2019-12-13 04:43:36
问题 Here is the scenario: 1. I have a GSM modem which is connected to my computer, It's working I can read and send SMS via the built-in program. 2. The port assign to my gsm modem is COM11 . I saw it from DeviceManager -> modems -> myModem-> Advance -> AdvancePortSettings . 3. I write the Java code to read incomming message. The code is as follows: public class PScanner implements SerialPortEventListener, Runnable { CommPortIdentifier pid = null; SerialPort sp; BufferedReader input; OutputStream

May i open a port on Cloud Foundry?

假如想象 提交于 2019-12-13 04:25:23
问题 I want to establish a UDP Connection from a terminal device to My App On Cloud Foundry. 回答1: all output from applications on Cloud Foundry is delivered by proxy via a web server (nginx) and as far as I know only http and https are open. Perhaps you should look at alternative ways of communicating with your console application, what kind of communication are you trying to achieve? 回答2: Using the CF_HOST:UDP_PORT from your terminal device should be OK. I suppose that an application (Java, Perl,

Changing local port of a socket client

拜拜、爱过 提交于 2019-12-13 04:12:16
问题 I have a simple TCP socket client and server application. They are communicating using IP = localhost and port = 33367. I'm using SocketSniff to examine my packets going through localhost. While sniffing the client app, I noticed that every time I'm sending a packet to the server in the same process, the "local port" is changing, while remote port is always 33367. So, is it possible for the client apps to send their data through a fixed port (if so, how in C#?) or do they have to get assigned

SerialPort wait for response

故事扮演 提交于 2019-12-13 03:59:58
问题 Do we have in .NET 4.0 the opportunity to wait for a response and then to return the response? Currently I'm doing it like this but it isn't really nice and I don't like it: public partial class MainWindow : Window { public MainWindow() { InitializeComponent(); byte[] options = new byte[]{1,1,0}; COMManager mgr = new COMManager("COM1"); byte[] result = mgr.GetResponse(options); } } And my COM Manager Class (I have to do the operation in a seperate class (dll)): public class COMManager {

Can't seem to open port 8787 or 3939 on an Ubuntu EC2 instance but 22 and 80 opens fine

随声附和 提交于 2019-12-13 03:49:38
问题 I've read through this answer but for the life of me, I can't figure out this one out. I have an Ubuntu 18 EC2 instance running RStudio Server and RStudio Connect, both using default configuration and listening on ports 8787 and 3939 respectively. Here are my config files: ubuntu@EC2:~$ cat /etc/rstudio/rserver.conf # Server Configuration File # # ubuntu@EC2:~$ sudo cat /etc/rstudio-connect/rstudio-connect.gcfg ; RStudio Connect configuration file [Server] ; SenderEmail is an email address

How to query the servlet container to obtain effective URL from a ServletContextListener?

a 夏天 提交于 2019-12-13 02:25:53
问题 In extension to this question is there a way to obtain the effective URL of a specific page in the same container from the scope of a ServletContextListener ? A bit of background why I need this : Within a fairly complex system I have setup a simple servlet to display the current information in JSON so I can display it easily on demand. Now I want to go one step further and keep a historical record of this to see the evolution in time of these measurement points. I have setup a simple

iOS: how to get the http connection's source port

无人久伴 提交于 2019-12-13 02:11:19
问题 I use NSURLRequest and NSURLConnection to access server: NSMutableURLRequest* request = [NSMutableURLRequest requestWithURL:self.url]; [request setHTTPMethod:@"PROPFIND"]; [request setValue:@"text/xml" forHTTPHeaderField:@"Content-Type"]; ... NSURLConnection* conn = [[NSURLConnection alloc] initWithRequest:request delegate:self]; [coon start]; I know we need a destination IP and destination port to connect server; the question is: how to get&set the source port of my http connection? (just

How to map URL to port and modified URL?

最后都变了- 提交于 2019-12-13 01:12:26
问题 How do I map www.somesite.com/api(.*) to www.somesite.com/$1:9000? (I need to map /api to Play framework application running @ port 9000) I did the following: $HTTP["url"] =~ "^/api" { proxy.server = ( "" => ( ( "host" => "127.0.0.1", "port" => 9000 ) ) ) } This gets me to somesite.com/api:9000 when I go to somesite.com/api, and I get "Action not found: For request 'GET /api'" 回答1: It is easily accomplished using Nginx: location /api/ { rewrite ^/api(/.*)$ $1 break; proxy_pass http:/

How to kill Apache / PHP server running on local host port 8080?

泄露秘密 提交于 2019-12-13 00:49:41
问题 I am currently running macOS High Sierra version 10.13.6. This is what I get when I load localhost:8080 in my browser: Apache / PHP server screenshot I do not know how this server was started on this port because I have never used these technologies. I do mess around with web development every now and then, but I do not know what I was doing when the server started. I have looked into how to kill the process and so far the closest I have come to ending the server is killing my chrome browser.