Build a server

Poster Content
nk4um Moderator
Posts: 485
June 28, 2010 14:43
Hi Stefan,

I''d recommend not trying to use a custom protocol but rather just use an existing one such as http, ftp or sftp unless there is some specific capability that nothing existing can provide.

If you need to do this then there is no specific technology that we have for general purpose custom protocol handling. It is easy to create a custom transport in NetKernel (i.e. a component that can receive events from outside and inject them into the address space of an application) however the technology to implement that tcp protocol transport will need to be found elsewhere - I would suggest looking at Java JDK classes or something like Etch http://en.wikipedia.org/wiki/Etch_(protocol)

Cheers, Tony
nk4um User
Posts: 33
June 25, 2010 12:16Build a server
My goal is to build a server, that listens on a port for TCP/IP messages with a proprietary protocol. Only simple text messages in a XML format will be delivered. My question: do i have to wirite my own listening server and then write a transport for this server? Or does Netkernel already has a generic TCP/IP server that can be used with some configuration (port..)? For example i looked at the email modul: there an external smtp library is used and a transport is written to create and use the smtp server within Netkernel.

What would be the right way?

thank you,
stefan