New topic: Bidirectional ServerSocket
<http://forums.realsoftware.com/viewtopic.php?t=34382> Page 1 of 1 [ 1 post ] Previous topic | Next topic Author Message pssrb Post subject: Bidirectional ServerSocketPosted: Thu Jun 24, 2010 6:59 am Joined: Sat Aug 30, 2008 2:20 pm Posts: 52 Location: Barcelona, Spain As I modestly understand that not enough information is found through the manuals for learning, I am trying to learn by examples, so, now I am playing with the ServerSocketClient and ServerSocketServer example programs. My application will need to receive messages from another java server program through a socket port. Upon receiving each message, my application must respond sending an ACK message. Nothing unusual, this could be done with a ServerSocket. However I can not figure out how to do the following: 1.) The java server program will asynchronously send several messages one after the other over the same communication channel without individually waiting for the ACK response, then, my ServerSocket application must individually process the received messages, and then, send the corresponding ACK for each one. As there is only one communication channel with the java server program, do the ServerSocket distribute each message to different instances of the cTCPSocket class, or I must handle all incoming messages in the same cTCPSocket class assigned to this communication channel. Needless to say that I need to expect to receive all packets of every message in order. 2.) How is bidirectionality implemented in the ServerSocketServer example program. That is, if ServerSocketServer example must be the one that initiates the connection to the listening remote java progam, and then send a message. Once my program is just loaded, if I use ServerSocket.ActiveConnections will return 0, so, how can I use one of the instances to initiate the communication with the listening java program. Top Display posts from previous: All posts1 day7 days2 weeks1 month3 months6 months1 year Sort by AuthorPost timeSubject AscendingDescending Page 1 of 1 [ 1 post ] -- Over 1500 classes with 29000 functions in one REALbasic plug-in collection. The Monkeybread Software Realbasic Plugin v9.3. http://www.monkeybreadsoftware.de/realbasic/plugins.shtml [email protected]
