Re: Communication between server/client (sockets)!

From: Chuck Dillon (cdillon_at_nimblegen.com)
Date: 08/18/03


Date: Mon, 18 Aug 2003 09:55:23 -0500

majk wrote:
> Hey!
>
> Im currently writing a server application based on socket fd's.
> The server gets information from other computers to perform
> certain tasks.
>
> The design will be a "Concurrent, connection oriented" server.
>
> anyway, what is the best way to communicate? I've seen the http
> protocoll using ASCII strings, right?

If you don't have performance issues to prevent the use of a text based
protocol it's useful to stick with text at least for the control data.
  It helps with debugging and troubleshooting to be able to use telnet
to connect to your server and talk to it.

You should consider basing your protocol on XML. Using XML allows you
to leverage existing parsers rather than role your own and it gives you
the ability to scale up. IOW to easily expand your protocol, to handle
multiple versions and that kind of thing.

-- ced

>
> Similar to: "GET index.html" and the servers returns index.html.
>
> My server needs input like: "DO JOB BATCH FILE1 FILE 2", whats
> the best way to communicate, whats mainly used? Is this a good
> way, implement a parser server side and parse every request?
>
> And, is it better to submit a script python or similar which holds
> all information?
>
> All input is welcome, my sockets are open :-)
>
> Thanks!
>
> // Majk
>

-- 
Chuck Dillon
Senior Software Engineer
NimbleGen Systems Inc.


Relevant Pages

  • Port Assignment- OT in a Small Way
    ... 5:RJE - Remote Job Entry ... 18:MSP - Message Send Protocol ... server, Traitor 21, WebEx, WinCrash, NerTe, ... 22:SSH - SSH Remote Login Protocol, RAT: Shaft ...
    (comp.security.misc)
  • Port Assignment- OT in a Small Way
    ... 5:RJE - Remote Job Entry ... 18:MSP - Message Send Protocol ... server, Traitor 21, WebEx, WinCrash, NerTe, ... 22:SSH - SSH Remote Login Protocol, RAT: Shaft ...
    (comp.security.firewalls)
  • Port Assignment- OT in a Small Way
    ... 5:RJE - Remote Job Entry ... 18:MSP - Message Send Protocol ... server, Traitor 21, WebEx, WinCrash, NerTe, ... 22:SSH - SSH Remote Login Protocol, RAT: Shaft ...
    (alt.computer.security)
  • PORT NUMBER AND SERVICES
    ... 5:RJE - Remote Job Entry ... 18:MSP - Message Send Protocol ... server, Traitor 21, WebEx, WinCrash, NerTe, ... 22:SSH - SSH Remote Login Protocol, RAT: Shaft ...
    (comp.security.firewalls)
  • Re: client -server interaction over XML supporting multiple protocols
    ... > NETBEUI to access the server to access the functionalities exposed. ... > server doesnot know in advance which client is using what protocol. ... size of the XML and Xfunctionality will determine the demands ...
    (comp.lang.cpp)