473,397 Members | 1,949 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 software developers and data experts.

Need Advice on Multithreaded Socket Server

I want to prepare some training for some new employees regarding the
topic of multithreaded socket services implemented in PHP. I've been
able to implement this with my own design, but I'd like to hear your
thoughts on what you think are some good design goals, such as
answering a question like, "Would you open a pack of 5 socket
listeners each time you go over a socket threshhold, just to make the
server that much more available?" Or perhaps a question like, "Would
you create a 'knock-knock' port for all initial connections and then
ask the client apps to come in on another dynamic port?" Or perhaps,
"Would you prefer to mix UDP and TCP for fault tolerance?" I'm just
looking for the best advice.

Specifically, I was hoping to demonstrate a fake SMTP server that
would drop the "emails" as text files on the hard drive, or perhaps a
simplistic Telnet server that allows one to at least do 'cd' and 'ls'.
Jul 17 '05 #1
1 3294
>I want to prepare some training for some new employees regarding the
topic of multithreaded socket services implemented in PHP. I've been
able to implement this with my own design, but I'd like to hear your
thoughts on what you think are some good design goals, such as
answering a question like, "Would you open a pack of 5 socket
listeners each time you go over a socket threshhold, just to make the
server that much more available?" Or perhaps a question like, "Would
you create a 'knock-knock' port for all initial connections and then
ask the client apps to come in on another dynamic port?" Or perhaps,
"Would you prefer to mix UDP and TCP for fault tolerance?" I'm just
looking for the best advice.

Specifically, I was hoping to demonstrate a fake SMTP server that
would drop the "emails" as text files on the hard drive, or perhaps a
I can't imagine a SMTP server that uses a knock-knock port. None
of the clients will know how to use it.

If you're going to implement a fake SMTP server, you need a *REAL*
SPAM filter. Even if it only listens on 127.0.0.1.

I also suspect that if you implement a blackhole SMTP server (it
says it accepts all mail, and makes absolutely no attempt to deliver
or log anything or examine mail headers or write anything to disk),
and leave it open to the Internet, it *WILL* be overloaded by
spammers, since it looks like an open relay, even if it never
delivers anything.
simplistic Telnet server that allows one to at least do 'cd' and 'ls'.


Gordon L. Burditt
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Sidd | last post by:
Hi, I tried finding and example of multithreaded client-serve program in python. Can any one please tell me how to write a multithreaded client-server programn in python such that 1.It can handle...
0
by: Sam Sungshik Kong | last post by:
Hello, C# gurus! I and my friends are planning to make a socket program just for practice of C# programming. It will be made up of a client program and a server program using a specific tcp...
7
by: Colin | last post by:
I'm writing a little console socket server but I'm having some difficulty. Can I ask your advice - where is the best place to get some help on that topic? It would be nice if some people who knew...
1
by: Krupa | last post by:
Hi All, I am developing a multithreaded application in c# on vs 2005 (compact framework 2.0). I want to have a socket server in a background thread and want to continue with the windows form...
7
by: John Paul | last post by:
I'm thinking of building an e-commerce site in php. Anyone got any advice in building one? What is the best way to implement a payment system? Are any legal issues involved? Thanks,
2
by: NaeiKinDus | last post by:
Hi there :) I'm trying to code a webserver running under WinXP, multithreaded, etc... The creation of my threads, the handles, everything works fine except this : the WSAEventSelect. The...
7
by: gnanapoongothai | last post by:
hi, the error i am getting in main for allocating heap memory for threads is #include <stdio.h> #include "winsock2.h" #include <stdlib.h> #include <windows.h> #include <strsafe.h>...
6
by: zaina | last post by:
hi everybody i am nwebie in this forum but i think it is useful for me and the member are helpful my project is about connecting client with the server to start exchanging messages between...
0
by: Chris Rebert | last post by:
On Mon, Nov 17, 2008 at 10:42 AM, Abah Joseph <joefazee@gmail.comwrote: Have you considered basing this off existing software for schools, like one of the programs listed on...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.