Sample network server code
Markus Fritsche
Fritsche.Markus at gmx.net
Mon Nov 25 20:19:07 UTC 2002
Avi Bryant said:
> What kind of errors do you mean?
I filed REPLServer (from the squeak swiki) in in a 3.4alpha (#5125) image
with comanche 5.1 (from squeakmap) and the MySQLDriver. An error is raised
because of:
Undeclared removeKey: #FilingIn!
So I ignored this and said
"REPLServer startOn: 8087". Then I do a raw connect with putty on port 8087.
If I do not enter anything, an error is raised:
------------------------------------------------------------------
25 November 2002 9:16:37 pm
VM: Win32 - Squeak3.3alpha of 24 January 2002 [latest update: #4967]
Image: Squeak3.4alpha [latest update: #5125]
Socket(Object)>>error:
Receiver: a Socket[connected]
Arguments and temporary variables:
aString: 'getData timeout'
Receiver's instance variables:
semaphore: a Semaphore()
socketHandle: a ByteArray(171 217 191 30 0 0 0 0 24 228 9 0)
readSemaphore: a Semaphore()
writeSemaphore: a Semaphore()
primitiveOnlySupportsOneSemaphore: true
Socket>>getDataQuicker
Receiver: a Socket[connected]
Arguments and temporary variables:
buf: nil
bytesRead: nil
Receiver's instance variables:
semaphore: a Semaphore()
socketHandle: a ByteArray(171 217 191 30 0 0 0 0 24 228 9 0)
readSemaphore: a Semaphore()
writeSemaphore: a Semaphore()
primitiveOnlySupportsOneSemaphore: true
SocketStream>>pvtGetData
Receiver: a SocketStream
Arguments and temporary variables:
string: nil
Receiver's instance variables:
socket: a Socket[connected]
inStream: a BufferStream(1)
outStream: a BufferStream(0)
status: a Dictionary(#buffered->true #inDataCount->9 #localAddress->a
ByteArray...etc...
SocketStream>>upTo:
Receiver: a SocketStream
Arguments and temporary variables:
delim: $
string: nil
Receiver's instance variables:
socket: a Socket[connected]
inStream: a BufferStream(1)
outStream: a BufferStream(0)
status: a Dictionary(#buffered->true #inDataCount->9 #localAddress->a
ByteArray...etc...
--- The full stack ---
Socket(Object)>>error:
Socket>>getDataQuicker
SocketStream>>pvtGetData
SocketStream>>upTo:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
SocketStream>>upTo:
REPLServer>>read
[] in REPLServer>>repl
BlockContext>>repeat
[] in REPLServer>>repl
BlockContext>>ensure:
REPLServer>>repl
[] in REPLServer class>>on:
[] in BlockContext>>newProcess
------------------------------------------------------------------
If I type "Transcript show: 'Me here' <enter>" nothing happens.
Interesting to mention: if I type "3 timesRepeat: [ Transcript show:
'foo']",
foofoofoo3 is displayed (as in the example).
Should I have been beaten by my image another time? :-)
Regards, Markus
More information about the Squeak-dev
mailing list
|