server

Server Design and Implementation

I've work in embedded systems and systems programming for hardware interfaces to date. For fun and personal knowledge, recently I've been trying to learn more about server programming after getting my hands wet with Erlang. I've been going back and thinking about servers from a C++/Java prospective, and now I wonder how scalable syste...

How to simply stream video from Adobe Flash Media Server? (Linux)

Hello, I'm stumped on how to get started with Adobe Flash Media Server. On Linux. All I need to do is: Accept a request for rtmp://myserver.com:1935/stream/static/abcdef0123456789 Tell FMS that $filename is located at /var/media/ab/cd/ef/abcdef0123456789 Have FMS send /var/media/ab/cd/ef/abcdef0123456789 to the client. Handle seekin...

Java: Run HTTP server on demand from my app?

Hello! I want to write a simple P2P test app which uses HTTP as underlying protocol. The app has to decide on demand, if it should act as a HTTP server, or as a HTTP client. The classic way which I am aware of, would be to deploy the app on some existing HTTP server. But this is the wrong way for my intention. It has to be the other wa...

How do I prevent execution of arbitrary commands from a Django app making system calls?

I have a Django application I'm developing that must make a system call to an external program on the server. In creating the command for the system call, the application takes values from a form and uses them as parameters for the call. I suppose this means that one can essentially use bogus parameters and write arbitrary commands for t...

How can I implement a threaded UDP based server in Java ?

How can I implement a threaded UDP based server in Java ? Basically what I want, is to connect multiple clients to the server, and let each client have his own thread. The only problem is, that I don't know how to check if a client is trying to connect to the server and spawn a new thread for it. boolean listening = true; System.out.p...

Python +sockets

Hello, i have to create connecting server<=>client. I use this code: Server: import socket HOST = 'localhost' PORT = 50007 s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) s.bind((HOST, PORT)) s.listen(1) conn, addr = s.accept() print 'Connected by', addr while 1: data = conn.recv(1024) if not data: break conn.se...

Multiple simultaneous network connections - Telnet server, Python.

I'm currently writing a telnet server in Python. It's a content server. People would connect to the server via telnet, and be presented with text-only content. My problem is that the server would obviously need to support more than one simultaneous connection. The current implementation I have now supports only one. This is the basic,...

How do VoIP services connect to landlines?

How do VoIP services, such as Skype and Yahoo, connect to landlines? We have a server connected to a landline using asterisk, so I'm thinking this server will bridge our VoIP conversation and connect it to a landline. But if this is the case, wouldn't Skype need a lot of servers placed around the whole world just to connect to landlin...

C#: Simple TCP server question

Hello, I tried to send a packet on the socket I use to listen for connections - i failed of course. I remember the days I coded in pascal that there was another socket I should send connections too,it was received after "Accept". Well,if this is correct then this is my problem: I'm using WSAAsyncSelect() in my TCP server(C#) protect...

How to design an email system?

I am working for a company that provides customer support to its clients. I am trying to design a system that would send emails automatically to clients when some event occurs. The system would consist of a backend part and a web interface part. The backend will handle the communication with a web interface (which will be only for intern...

Best web server for Microsoft Windows to execute cgi

Is Apache configured for windows the best way to go? Does it have any issues running cgi? ...

Looking for SMTP server

My site is hosted at Mediatemple but the IP address mail is being sent from is blacklisted so Hotmail messages are not delivered. Therefor I would like to use another SMTP server. Does anyone have suggestions? ...

What HTTP framework to use for simple but scalable app?

What HTTP framework should I use for a simple application with implied scalability, priferable Pythonic? I would like to be able to smoothly add new features to my app when it has already been deployed. ...

Asynchronous Server-Side TCP/IP

Hello, I saw just what I needed at msdn to create my TCP server,but there are missing parts in the code. >Here's< the article and here's the code: // This server waits for a connection and then uses asynchronous operations to // accept the connection with initial data sent from the client. // Establish the local endpoint for the sock...

uses undefined struct compile error - C

The compiler doesn't know where stat.h is? Error: c:\Projects\ADC_HCI\mongoose.c(745) : error C2079: 'st' uses undefined struct '_stat64' #include <sys/types.h> #include <sys/stat.h> static int mg_stat(const char *path, struct mgstat *stp) { struct _stat64 st; //<-- ERROR int ok; wchar_t wbuf[FILENAME_MAX]; to_uni...

A problem setting timeout feature in with Jquery AJAX.

Hello, I have a jquery HTML page which loads a form. The form has a bunch of settings, but eventually the form gets submitted using a post command (see below) which returns an HTML page built by a script running on the server. This works fine, except when the script runs longer than 5 minutes. The post command just returns nothing. I...

Windows system monitoring and profiling

I have several dozen 64-bit Windows 2003 servers in a high performance environment with very bursty system utilization. I am looking for a tool (or tools) to monitor and analyze system performance (eg, CPU utilization, bandwidth, etc). This tool can either query servers from a central location (SNMP) or require installation of a compone...

Asp.net Report Viewer SRS Setup

Hi all, I currently have a srs report which has a url that looks like http://localhost/Report_SqlExpress/Pages/Report.aspx?ItemPath=/personnel_report I've tried using the Report viewer control to display this report by doing the following <rsweb:ReportViewer ID="ReportViewer1" runat="server" ProcessingMode="Remote" ...

What is the optimum duration for a web crawler to wait between repeated requests to a web server

Is there some standard time duration that a crawler must wait for between repeated hits to the same server...so as not to overburden the server. If not, any suggestions on what can be a good waiting period for the crawler to be considered polite. Does this value also vary from server to server... and if so how can one determine it. An...

Manually coding MVC Views vs. asp:ServerControls

I barely got into ASP.Net webforms when MVC came out, and now I'm ready to try it out. But, I want to clarify something to be sure I understand the View coding in ASP.Net MVC... I've heard that you must hand-code all the HTML in the View layouts, and that you cannot use server controls for this. Now, I like the way you can use the asp:L...