Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / August 2006

Tip: Looking for answers? Try searching our database.

Java Networking Frage - überwachen mehrerer Sockets

Thread view: 
Axel Bock - 30 Aug 2006 08:03 GMT
Hi zusammen,

ich habe hier gerade ein kleines Problem. Ich brauche ein tool, welches
manuell port forwarding beherrscht, dabei aber zwischen SSL und
nicht-SSL ports vermitteln kann.

also - kleine Grafik - folgendes:

normal:
(APP)   ----->  (ServerApplikation: host:port)

mittels vermittler:
(APP)   ----->  ("proxy": localhost:port)   ----->  (serverApplikation:
host:port)

die "kür" ist, daß die serverapplikation entweder SSL oder auch nicht
sein kann.

das ganze soll möglichst transparent geschehen, also _nicht_ indem ich
einen proxy schreibe - ich verändere also in (APP) die ziel-IP und den
ziel-port. das ganze wäre ja eigentlich relativ einfach, allerdings
kann ich in java wohl nicht ohne weiteres merhere sockets auf
ereignisse überwachen. und mein konstrukt aus inzwischen vier threads
pro verbindung ist schlicht INSTABIL. (und funktioniert nebenbei nicht
... :-/ )

und hier beginnt mein problem: Ich fand zwar den SocketChannel, der mir
komfortables überwachen von sockets ermöglicht, aber der funktioniert
nicht mit SSL sockets.

was ich also möchte ist ein verfahren, bei dem ich sozusagen so etwas
machen kann:

for (int i=0; i<sockets.length; i++) {
   something.registerSocket(sockets[i]);
   Event event = something.waitForEvent(); // blocking
   // ... handle event
}

socketchannel ist schon gut, aber ... SSL und so halt.

hat jemand vielleicht eine idee? :-)

Grüße & vielen Dank schon mal,
Axel.
Axel Bock - 30 Aug 2006 08:05 GMT
drats.

two mistakes at once - wrong group, error in code example :-)

copied over to de.comp.lang.java ...

sorry.
Andrew Thompson - 30 Aug 2006 09:08 GMT
> drats.
>
> two mistakes at once - wrong group, error in code example :-)

Two mistakes at once?  That earns a 5% discount.

> copied over to de.comp.lang.java ...

Gesundheit!   ;-)
Axel Bock - 31 Aug 2006 08:08 GMT
Andrew Thompson wote:
> > drats.
> >
[quoted text clipped - 5 lines]
>
> Gesundheit!   ;-)

Dankeschön :-)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.