port

How do i get a free socket port? C++

I am writing a UDP test client/server and i want to get it through firewall. Supposedly all i need to do is have both sides send to the correct IP and server. Getting an IP is not a problem but how do i have the client pick a random free port and report it to the user? I eventually would want it to connect to a matchmaker server but righ...

Control Internet connection data

I want to control internet connection programmatically, (I use Visual Studio .net (c#)). I want to process all the requests that are sent to the internet. For example, if a user on any browser type "google.com", I want to get this request before it's sent to the internet. Simply, it's a process that Windows uses to send and retreive da...

How can a java library be ported to the web?

How do you take a java library that is for the desktop or an applet and make it so you can use its functions for a web page? I know not all things are meant for the web, but can you call a "regular" java class in an apache/tomcat setup server and it "work"? Do you have to so something to it to get it work with a web page? I was intere...

Call C++ code from a C# application or port it?

I've recently been wrestling with an algorithm which was badly implemented (i.e. the developer was pulled off onto another project and failed to adequately document what he'd done) in C#. I've found an alternative (from numerical recipes) which works but is written in C++. So I'm thinking probably the safest way to get something workin...

Dynamic port

Doesn’t the dynamic ports keep changing? If yes, wont these ports change and communication stop? Please advice. ...

How do you port a Windows-based application written in Delphi to different platforms such as Mac, iPhone and into a web-based application?

Currently, it is just a windows-based application (slowed down guitar software) written in Delphi. However, I do have plans to port them to the following platforms : Mac iPhone Web-based How do I go about this? What is the bes programming language to use? What kind of developers do I need to look for? And how long will these projects...

Windows batch script to print error message if port in use

I'm trying to write a batch script that errors if port 1099 is already in use. Unfortunately I have to write it in a DOS batch script (I cannot install anything). I know that I can print the PID of the process hogging port 1099 manually: netstat -aon | findstr ":1099" But I want to be able to run that command in a batch script and e...

Dedicated network port in C#

How do I ensure that a particular port on my computer is not being used for any other purpose other than the service I need in C#?? In my program for a simulation of a lan-messenger, I am getting a connection refused error when trying to connect to a remote host.Hence I need to somehow ensure that the port isn't being used for any other...

asp.net web page to device connect to server's usb (COM) port

Hello All, I am working on a way to send commands to an Arduino board from a web site. The Arduino board is connected to the computer via a USB port (a COM port) I have managed to connect and control the board using a VB.net program. I also wrote a vb.net class that can instantiate a COM connection and send and receive messages. My ne...

Read IIS7 configuration from within web application?

Here's what I want to do: My web application is very slow at first until all pages have been precompiled and the cache has been populated. I want to 'warm up' the application in Global.asax by triggering a few HTTP requests to the slowest pages. The problem is that I don't know which port the application is running on. Could be 80 (m...

How do I start JBoss on a privileged port?

How do I start JBoss on a privileged port? I want to use port 80 instead of port 8080 (or alternatively, port 443 instead of port 8443). I can change the appropriate configuration files (jboss-web.deployer/server.xml) to change the port that is used, but then I cannot start the server because these are privileged ports. I could run JB...

Do I need to register ports as "in-use" with ICANN?

The application I'm currently working on requires three ports to be opened. At the moment these are 5024 through 5026 but on reading around I discovered that these lie in the ICANN registered range (i.e. ports < 49151). Is there any need for me to inform any organisation that I plan to use these ports if it's within a local network only...

How to set port for webclient in c#?

Hi, I am trying to download a file using webclient in c#. the remote port of the file location is 20114. How do I tell webclient to use 20114 port? ...

How to develope a Virtual com port c++

I have been told to develop a virtual com port so an app the company has can read off com "comCompanyNameV1".. I tried to pick apart com0com, but it seem so incomplete I'm finding I have to kludge around large parts of it and I have yet to get anything to come close to compiling. Mostly because the tools that are outlined to use to build...

[MFC Application] How to validate hostname (may be IP) and port number (CString)

I have an dialog for HTTP proxy configuration with hostname and port edit boxes. My question is how can I validate user input for correct hostname and port? May be I have to use some regular expression for hostname validation or there is some helpful MFC or WinAPI function? What is the maximum correct number for port? ...

Open port in linux with java application

Hi, i've a java application that create a socketserver in a port. I test my application in a windows machine, and run correctly, but when i test it in a linux machine, the port is not listening. Is there any way to open port specifically in a linux machine? I run 'netstat' command, and the port i use in my application doesn't appear. i...

Resources for converting C++ CLI with .net 2.0 to C# with .net compact framework

Does anybody know of any useful resources for porting a C++/CLI application written in VS2005 with .net framework 2.0 to a mobile device with .net 2.0 compact and C#? Windows Mobile doesn't support C++ CLI, so we may need to rewrite some of our applications. Through the searching I've done, everything seems to talk about porting from reg...

Porting .NET C++ standalone to Mac

I need to give an estimate for porting a standalone program to a Mac from a .NET platform. I have all the source code which is in C++ and is both code I wrote and a modified version of GLUT/GLUI because the program uses OpenGL and GLUT/GLUI as a UI. I don't think the C++ code will be a problem or the OpenGL environment, please tell me ...

How do I abort CCR threads\tasks?

I want to implement a timeout on the execution of tasks in a project that uses the CCR. Basically when I post an item to a Port or enqueue a Task to a DispatcherQueue I want to be able to abort the task or the thread that its running on if it takes longer than some configured time. How can I do this? ...

Should I port Linux Driver to Mac OS X OR Should I Rewrite it

Hi I have a Linux driver that I would like to use it Mac OS X. I know that the Mac OS X is based on BSD. Should I try to port my driver to Mac OS X or should I rewrite it in Mac OS X using I/O Kit in C++? The linux driver is for some PCI device. ...