[4537] in java-interest
Re: Socket connection in an applet
daemon@ATHENA.MIT.EDU (JoanMa MAS RIBES)
Fri Jan 5 12:13:26 1996
Date: Fri, 05 Jan 1996 15:42:31 +0000
From: JoanMa MAS RIBES <mas@tele.ucl.ac.be>
To: trk@bilbo.wipsys.soft.net
CC: jig <java-interest@java.sun.com>
This is a multi-part message in MIME format.
-----------------------------12696971224978658821651599596
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
trk@bilbo.wipsys.soft.net wrote:
>
> **********
> I am reposting this..
> please help me out..
> **********
> Hi !
>
> I have a trivial applet which has to contact the SMTP
> service on its originating host and do the following:
>
[cut]
>
> Things are going fine when I use appletviewer. When I use
> Netscape ( 2b3 on Solaris 2.4) the applet is not able to
> read any message given by the SMTP server. It finds that
> the first two messages are null.
>
> I use readLine on the DataOutputStream created using the
> getOutputStream() on the connected socket.
>
> I am not getting any Exceptions..
>
> BTW, if I run it as an application ( after modifying the code
> below) things are quite ok.
>
[cut]
>
> I suppose I made a silly mistake somewhere. Can someone tell
> me how to make this work?
>
> Thanks in adv..
>
> Cheers
> TRK
>
>
Hi there :))
Here's an extract of the FAQ - Applet Security
I guess your problem is that when using Netscape applets cannot open
a connection to a remote server.
This file can be found at http://java.sun.com/sfaq/
Good luck
16.Is there a summary of applet capabilities?
The following table is not an exhaustive list of applet
capabilities. It's meant to answer the
questions we hear most often about what applets can and cannot do.
Key:
NN: Netscape Navigator 2.0beta, loading applets over the Net
NL: Netscape Navigator 2.0beta, loading applets from the
Local file system
AN: Appletviewer, JDK beta, loading applets over the Net
AL: Appletviewer, JDK beta, loading applets from the Local
file system
JS: Java Standalone applications
Stricter ------------------------> Less strict
NN NL AN AL JS
read file in /home/me, no no no yes yes
acl.read=null
read file in /home/me, no no yes yes yes
acl.read=/home/me
write file in /tmp, no no no yes yes
acl.write=null
write file in /tmp, no no yes yes yes
acl.write=/tmp
get file info, no no no yes yes
acl.read=null
acl.write=null
get file info, no no yes yes yes
acl.read=/home/me
acl.write=/tmp
delete file, no no no no yes
using File.delete()
delete file, no no no yes yes
using exec /usr/bin/rm
read the user.name no yes no yes yes
property
connect to port no yes no yes yes
on client
connect to port no yes no yes yes
on 3rd host
load library no yes no yes yes
exit(-1) no no no yes yes
create a popup no yes no yes yes
window without
a warning
-----------------------------12696971224978658821651599596
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: inline; filename="mail-final"
--------------------------------------------------------------------------------
_/ _/ _/ _/ _/ _/_/ JoanMa MAS RIBES
_/ _/_/_// _/_/_// _/ _/
_/ _/ _/_/ _/ _/_/ _/_/ Universite Catholique de Louvain
_/ _/ _/ _/ _/ _/ _/ _/ Laboratoire de Telecommunications
_/_/ _/ _/ _/ _/ _/ _/ Batiment Stevin
2, Place du Levant
B-1348 - Louvain La Neuve
mailto:mas@tele.ucl.ac.be Tel.: +32 - (0)10 - 478067
Fax : +32 - (0)10 - 472089
Security is when everything is settled.
When nothing can happen to you.
Security is the denial of life.
--------------------------------------------------------------------------------
-----------------------------12696971224978658821651599596--
-
This message was sent to the java-interest mailing list
Info: send 'help' to java-interest-request@java.sun.com