Hey guys,
I was tinkering around a little with Door programming in Java and am having a little trouble grasping the whole Door concept. I know the Door32.sys file contains a Comm Type (0=local, 1=serial, 2=telnet) and a socket handle. If I'm a telnet user connected to a BBS I should have a Comm Type of 2 and a socket handle greater than zero (I think).
So in Java, somehow I think I
need to connect to that socket handle in an input and output stream to be able to read and write data to that socket.
So, I spent some time playing around with the java.net ServerSocket API but haven't realy figured out how to get the connection. Are there any gurus out there who can give me some examples on how to receive a handle from the BBS and communicate with the Telnet user?
I am a BBS/door guru, but have very little experience with Java. In general, I think Java has not had a lot of traction as a platform for writing BBS doors. If you can find a way to construct a socket object
and specify the underlying descriptor/handle that should be used (rather than opening a new socket), then that should get you started. I'm not
sure "ServerSocket" is the right thing as that *sounds* like a listening socket which is not really what you want. The socket is already
connected (no bind/listen/accept required).
I am a BBS/door guru, but have very little experience with Java. In general, I think Java has not had a lot of traction as a platform for writing BBS doors. If you can find a way to construct a socket object and specify the underlying descriptor/handle that should be used (rather than opening a new socket), then that should get you started. I'm not
sure "ServerSocket" is the right thing as that *sounds* like a listening socket which is not really what you want. The socket is already
connected (no bind/listen/accept required).
You may be right the ServerSocket API may not be what I need. I had tried
to open an OutputStream usign a number of different methods but it just locked the BBS user up completely.
Should the handle be the only thing I would need or do I need to specify a baud rate somewhere?
Sysop: | Weed Hopper |
---|---|
Location: | Clearwater, FL |
Users: | 14 |
Nodes: | 6 (0 / 6) |
Uptime: | 233:29:03 |
Calls: | 55 |
Calls today: | 1 |
Files: | 50,128 |
D/L today: |
39 files (6,004K bytes) |
Messages: | 275,432 |