Holger Hans Peter Freyther
6f7e0bcf8d
m2ua: Merge the ASP changes from Pharo to GST
2013-06-17 15:15:35 +02:00
Holger Hans Peter Freyther
372c2e0f0b
m2ua: Move the code to separate directory to prepare merging with Pharo
2013-06-17 14:19:26 +02:00
Holger Hans Peter Freyther
a0eb175b26
m2ua: Add some documentation about the states from Pharo
2013-05-14 17:18:17 +02:00
Holger Hans Peter Freyther
f91e5c96aa
net: Introduce the OsmoStreamSocketBase connection
2013-05-14 17:09:59 +02:00
Holger Hans Peter Freyther
b9d70c018f
misc: Improve the test coverage of the OsmoNetwork
...
Get the >>#parameterName/>>#spec out of the uncovered methods, this
is done by just finding the right classes and calling the selectors.
Add some simple tests for a MessageBuffer method that was not covered
yet.
2013-05-14 14:18:33 +02:00
Holger Hans Peter Freyther
43c5a43e80
pharo: Turn the socket into binary mode
2013-05-13 09:32:52 +02:00
Holger Hans Peter Freyther
4f0b583d1c
sccp: Move the SCCPGlobalTitle and SCCPGlobalTitleTranslation to new files
...
Split out the SCCPGlobalTitle and SCCPGlobalTitleTranslation to new
files and update the Makefile and package.xml for the new file.
2013-04-30 18:39:13 +02:00
Holger Hans Peter Freyther
099d03f1cd
sccp: Rename SCCPGTI to SCCPGlobalTitle
...
Rename it to SCCPGlobalTitle and drop the "indicator" as it is
not an indicator at all.
2013-04-30 18:35:35 +02:00
Holger Hans Peter Freyther
e46ebff237
sccp: Rename poi to pointCode and update selectors
2013-04-30 14:40:48 +02:00
Holger Hans Peter Freyther
c6f896f645
ipa: Create initializeHandlers for the init
2013-04-29 15:59:30 +02:00
Holger Hans Peter Freyther
529b082c10
ipa: Add a space between the string and the stream id
2013-04-29 15:42:16 +02:00
Holger Hans Peter Freyther
6df7f5e488
ipa: Initialize the handlers if they are null
...
This avoids classes calling >>#initialize on load to initialize
the instance variable. It is a bit sad. If we would just return
handlers GST could optimize the method better (e.g. avoid calling
it and just return the variable).
We should call it initialize handlers or such. This can be done
in a follow up method.
2013-04-29 15:39:33 +02:00
Holger Hans Peter Freyther
6c8b36319b
osmo: Fix the creation of the OsmoAppConnection
...
Move the variable into the right method.
2013-04-29 12:45:32 +02:00
Holger Hans Peter Freyther
189471a586
osmo: Allow a subclass to change the dispatcher/ipa handler
...
Allow a subclass to overwrite this method to create a custom
handler. So far one could only register additional handlers but
not change the proto handler completely.
2013-04-29 10:36:21 +02:00
Holger Hans Peter Freyther
3e8d588e9b
ipa: Make the handler a variable on the class side
...
* Making it a classVariable will make subclasses manipulate the
base variable. By making it a variable on the class side avoids
this issue.
2013-04-29 09:53:29 +02:00
Holger Hans Peter Freyther
12bdaf75f6
m2ua: Begin with a M2UA AS and ASP state machine and support code
2013-04-08 08:41:46 +02:00
Holger Hans Peter Freyther
009957dffc
mtp3: Introduce some basic structures for MTP3 decoding
...
This starts to introduce some basic MTP3 message decoding and
encoding using the generic MessageBuffer classes.
2013-04-06 11:40:53 +02:00
Holger Hans Peter Freyther
7ccefaa16e
sccp: Do not use abbreviation for variable names
...
It can help users to understand what we are talking about. This
request was expressed by noha.
2013-04-02 16:59:35 +02:00
Holger Hans Peter Freyther
247205d803
sccp: Move the SCCPAddress to a separate file
...
Begin with the one class one file pattern and move the SCCPAddress
to a shiny new file.
2013-04-02 16:12:45 +02:00
Holger Hans Peter Freyther
0dd9a2287c
ua: Add a testcase for M2UAMSG>>#findTag:ifAbsent:, fix the code
...
Make the findTag:ifAbent: work. The tag didn't have the isTag
query selector.
2013-04-01 15:08:07 +02:00
Holger Hans Peter Freyther
94498315cb
m2ua: Rename to M2UAMSGTest as it tests M2UAMSG
...
And move it into a new category
2013-04-01 15:03:47 +02:00
Holger Hans Peter Freyther
3423039406
sccp: Fix the SCCPHelper>>#createRLSD.. invocation
...
This was spotted by the code critics of Pharo. Use the right class
selector to create a Connection Released message.
2013-04-01 15:01:05 +02:00
Holger Hans Peter Freyther
a0257331f3
misc: Fix warnings reported by the code critics of Pharo
2013-04-01 10:48:44 +02:00
Holger Hans Peter Freyther
5af90bdfd8
isup: Use a different category name for the extensions
...
These should not show up in a different package
2013-04-01 10:48:44 +02:00
Holger Hans Peter Freyther
776dda4070
isup: Do not generate the the MessageType field as it doesn't make sense
...
There is no ISUPConstants>>#parMessageType so do not generate such
a class.
2013-04-01 09:53:41 +02:00
Holger Hans Peter Freyther
412124646f
gst: Fix linting for the category name of the class
2013-03-30 16:40:31 +01:00
Holger Hans Peter Freyther
3746f7ad98
osmo: Make it possible to register on the OsmoAppConnection IPADispatcher
...
OsmoAppConnection now can call a block registered with >>#onConnect:
to allow modifying the dispatcher. This can be used to register for
the SCCP protocol. Use >>#nextPut:with: to send information through
the muxer.
2013-03-27 19:14:55 +01:00
Holger Hans Peter Freyther
db413d1d0f
osmo: Improve the connection class for re-connect and process handling
...
Use the usual rx/tx process handling, re-connect, start/stop
2013-03-27 18:38:11 +01:00
Holger Hans Peter Freyther
75587966d3
osmo: Create a new LogArea for the osmo area.
2013-03-27 16:23:05 +01:00
Holger Hans Peter Freyther
dd54429310
osmo: Add a way to set the token on the connection
2013-03-27 16:23:05 +01:00
Holger Hans Peter Freyther
a47c76fc1b
osmo: Introduce a subclass for the CTRL handling
2013-03-27 16:23:05 +01:00
Holger Hans Peter Freyther
3ae32dfb73
osmo: Move the OsmoAppConnection into the same category as OsmoUDPSocket
...
These two classes will start to share a base class for the close and
open and creating the processes in the future.
2013-03-27 16:23:05 +01:00
Holger Hans Peter Freyther
b33d07309a
ipa: Use String>>#expandMacrosWith: in the IPADispatcher
...
Make the code just work on Pharo and use the expandMacrosWith extension
for the String from the OsmoCore.
2013-03-27 16:23:05 +01:00
Holger Hans Peter Freyther
131d2465f9
pharo: Rename the StreamSocket to SocketStream for pharo
2013-03-27 07:42:53 +01:00
Holger Hans Peter Freyther
d228bfd818
osmo: Move the socket creation to a new method for the OsmoAppConnection
2013-03-26 16:44:08 +01:00
Holger Hans Peter Freyther
1a0b690eaa
Huge internal restructuring of the in sub-directories
2013-03-26 14:53:13 +01:00
Holger Hans Peter Freyther
1deae5d4cc
socket: Make the UDP socket code work on Pharo
...
Handle ConnectionClosed to avoid the exception popping up in the
workspace.
2013-03-26 13:51:46 +01:00
Holger Hans Peter Freyther
aa692f65c9
pharo: Use >>basicSize and allow to use different sockets with overrides
2013-03-26 11:07:11 +01:00
Holger Hans Peter Freyther
5ee3f64921
misc: Add makefile to help with converting the code to Pharo
...
Work on automatically porting to Pharo.
2013-02-23 19:00:01 +01:00
Holger Hans Peter Freyther
854ab4b14b
misc: Avoid the namespace access for the current namespace
2013-02-23 18:59:25 +01:00
Holger Hans Peter Freyther
2c6925aded
ipa: Move GST only code to a new file and do not convert it
...
The nice C-API/struct handling is only available on GST. We can
probably make this code just be stream-based.
2013-02-23 18:59:25 +01:00
Holger Hans Peter Freyther
8115187fd7
isup: FIx shadowing of the class variable
2013-02-23 18:59:24 +01:00
Holger Hans Peter Freyther
6d62146696
isup: Move the comments into the methods
2013-02-23 18:59:24 +01:00
Holger Hans Peter Freyther
5a061d9bef
m2ua: Move the comments into the comment pragma, fix parse issue
...
#endif is not a good entry in a file. Move the comments into the
method and class as this is the only way we can express it for
other dialects.
2013-02-23 18:59:24 +01:00
Holger Hans Peter Freyther
c24ccc9db6
cobject: Remove the ByteArray>>#castTo: extension
...
ByteArray>>#castTo: has only been used for the IPASCCPState but
this will be difficult to port to Pharo and other dialects. We
can implement this code using Streams without any downside or
implement the #declaration: ourselves.
2013-02-23 18:59:24 +01:00
Holger Hans Peter Freyther
f66abe8824
category: Categorize the classes correctly for the OsmoNetwork package
...
Prefix all with OsmoNetwork, use *OsmoNetwork in extensions
2013-02-23 18:59:24 +01:00
Holger Hans Peter Freyther
cf820ff25b
compat: Use >>substrings: String and (Sring withAll: Array)
...
In Pharo Object>>#asString is not doing what Array>>#asString is
doing in GST. Avoid the issue and use the String>>#withAll: selector.
Pharo needs a string for the >>#subStrings: routine. So let us create
a string here to ease porting.
2013-02-23 18:56:56 +01:00
Holger Hans Peter Freyther
6c4d821861
compat: Use the >>expandMacrosWith: instead of the bindWith:
...
Pharo doesn't have >>#bindWith: and OsmoCore is now providing the
>>#expandMacrosWith: family of functions.
2013-02-23 18:55:41 +01:00
Holger Hans Peter Freyther
32e5b01e97
misc: Remove the debug code in the form of ``@object printNl.
2013-02-23 18:54:13 +01:00
Holger Hans Peter Freyther
f410c60d8a
misc: Remove out of method comments as they break the conversion
...
gst-convert: warning: superclass PPCompositeParser is undefined
gst-convert: error: Invalid index 95: index out of range
Object: 'conditional [
<category: 'presence'>
^ #conditional
]' error: Invalid index 95: index out of range
SystemExceptions.IndexOutOfRange(Exception)>>pass (ExcHandling.st:385)
[] in UndefinedObject>>executeStatements (../../../install/smalltalk-master/share/smalltalk/scripts/Convert.st:580)
SystemExceptions.IndexOutOfRange(Exception)>>activateHandler: (ExcHandling.st:515)
SystemExceptions.IndexOutOfRange(Exception)>>signal (ExcHandling.st:254)
SystemExceptions.IndexOutOfRange class>>signalOn:withIndex: (SysExcept.st:660)
String(Object)>>checkIndexableBounds: (Object.st:798)
String>>at: (String.st:312)
STInST.MappedSourceCode(MappedCollection)>>at: (MappedColl.st:78)
STInST.RBFormatter>>newLinesFor:startingAt: (Parser.star#VFS.ZipFile/RBFormatter.st:390)
[] in STInST.RBFormatter>>formatStatementCommentFor: (Parser.star#VFS.ZipFile/RBFormatter.st:322)
2013-02-23 18:54:00 +01:00