Hello Roberto,
I created a simple server on my PC and a corresponding client on my board running GNU classpath + jamvm + Felix OSGi on it. Here is the output of my client:
1204275489213: new instance of client
1204275489218: started client thread
1204275489229: Opened socket: java.net.Socket@b7738e78 [addr=/xx.xx.xx.xx,port=4455,localport=50692]
1204275489242: Send message
1204275492261: Send message
1204275495271: Send message
with the first column outputted with System.currentTimeMillis(). So as you see, the time to open a socket to a server takes milliseconds....
Afterwards I installed the server on my board and the client on my PC:
1204275489213: new instance of server
1204275925025: started server thread
1204275925033: opened server socket: ServerSocket[addr=/0.0.0.0,port=4455,localport=4455]
...after starting the client on my PC...
1204275972671: accepted client: java.net.Socket@b77d8268 [addr=/xx.xx.xx.xx,port=1459,localport=4455]
1204275972744: received: Here I am!
1204275975671: received: Here I am!
Again, some millis....
Kind regards,
sesam
(Last edited by sesam on 29 Feb 2008, 10:12)