Link to home
Start Free TrialLog in
Avatar of ikhmer
ikhmer

asked on

ServerSocket and SSLServerSocket

dear all,

i'm trying to change from ServerSocket to SSLServerSocket but i got the error message :

 javax.net.ssl.SSLServerSocket is abstract; cannot be instantiated
        SSLServerSocket ss= new SSLServerSocket(port);
                            ^

here is what i want to change :

 ServerSocket ss = new ServerSocket(port);    change to ==>        SSLServerSocket ss= new SSLServerSocket(port);
       
is it possible to change? if can not what is the solution to do this work?
ASKER CERTIFIED SOLUTION
Avatar of Peter Kwan
Peter Kwan
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ikhmer
ikhmer

ASKER

thank You!!!