1. Possible.
2 . To handle the raw socket connections you need to create a 'java.net.ServerSocket'
on a
specified port and a thread has stay over it to accept the input socket
('java.net.Socket')connection and to process it and send back a reply if required. You
have to
catch the input/output streams(java.io.InputStream/java.io.OutputStream) for the
inbound socket
connections and read(through bufferedInputStream/DataInputStream) the binary stream
and needs
to write the binary stream and flush the data back to client.
thanks
Gangadhar
Ronen Portnoy wrote:
> Hi,
>
> i want to implement a servlet that handles both HTTP and raw tcp Sockets connections,
>
> 1. is it possible ?
> 2. how can i make the servlet listen on a given port (how do i self activate the
>servlet) ?
>
> ronen
>
> ___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html