1
0
Fork 0
Commit Graph

210 Commits

Author SHA1 Message Date
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
Holger Hans Peter Freyther c8a8293564 misc: Remove PackageLoader fileInPackage from the code
It is easier to remove the custom PackageLoader>>#fileInPackage:
when porting to Pharo.
2013-02-23 17:08:09 +01:00
Holger Hans Peter Freyther 45392894da control: Add code that makes it more easy to deal interact with OpenBSC
Add a grammar for the OpenBSC control interface and a class that
makes it more easy to connect to a provider.
2013-01-09 18:46:41 +01:00
Holger Hans Peter Freyther 22e3039b8a isup: Call the MessageStructure TLVDescriptionContainer
In terms of moving the code to the description format as used for
the GSM code rename the MessageStructure to TLVDescriptionContainer.
2012-12-11 13:21:46 +01:00
Holger Hans Peter Freyther 5fa3bb680f isup: Begin to align the MessageStructure and the TLV description
Change #structure to #tlvDescription. The descriptions now need
to be changed.
2012-12-11 11:48:13 +01:00
Holger Hans Peter Freyther 17ee24015f tlv: Introduce another attribute to allow using it for GSM04.08
Normally all mandatory elements lack the tag but for some elements
the mandatory element is carrying the tag as well. Add methods to
support that.
2012-08-23 20:47:53 +02:00
Holger Hans Peter Freyther e7f79e2621 tlv: Move the TLV from the FakeBTS code to here to be used and improved 2012-08-23 16:26:56 +02:00
Holger Hans Peter Freyther 52a0026d32 misc: Simplify the package description 2012-08-09 02:05:16 +02:00
Holger Hans Peter Freyther 00c7acdc12 core: Introduce a Socket/UDP base class helper for multiple sockets 2012-08-09 02:05:09 +02:00
Holger Hans Peter Freyther 0b18355039 typo: Fix the word mandatory.. a common typo of mine 2012-08-03 10:58:23 +02:00
Holger Hans Peter Freyther 3e5902a617 ipa: Add a simple TL(V) parser for the IPA Protocol data
The length field is different for request and response and the
generation of it is broken inside the nanoBTS. Try dealing with
these broken messages.
2012-07-30 17:00:47 +02:00
Holger Hans Peter Freyther 9939be4ff3 ipa: Move the IPATests to a new file 2012-07-30 17:00:47 +02:00
Holger Hans Peter Freyther 02ad06bad6 misc: Ignore vi files 2012-07-30 17:00:47 +02:00
Holger Hans Peter Freyther 6b701f3421 ipa: Make the IPADispatcher work on BlockClosures and add new API
Make the IPADispatcher work with BlockClosure. Add a new API to
register a block for a stream id. This will remove the requirement
of adding a dedicated selector.
2012-07-28 20:45:21 +02:00
Holger Hans Peter Freyther 66900c7fe7 ipa: Make the IPADispatcher automatically initialize the object
Update the code.
2012-07-28 19:04:39 +02:00
Holger Hans Peter Freyther c69c20f9dc log: Make it clear from the log message that this is the ipa disp. 2012-03-07 23:44:48 +01:00
Holger Hans Peter Freyther 886a7c10aa misc: Add categories to a lot of class methods 2012-02-20 19:41:05 +01:00
Holger Hans Peter Freyther cdad29f032 misc: Add categories for all selectors in this nanespace. 2012-02-20 14:47:02 +01:00
Holger Hans Peter Freyther 023d7a78d4 misc: Add a comment all classes in the Osmo namespace 2012-02-20 13:56:15 +01:00
Holger Hans Peter Freyther 572906b5e5 ipa: Code style changes and documentation of IPAProtoHandler
Change the order of vars and comments/category, send multiple messages
to the dictionary.
2012-02-20 11:42:45 +01:00
Holger Hans Peter Freyther b6abb13625 ipa: Add categories to methods of the IPA Proto Handler 2012-02-20 10:37:14 +01:00
Holger Hans Peter Freyther fc5778fa3c isup: Attempt to make the code more readable
We want to handle fixed, mandatory and then optional|optionals,
make the code more readabl.
2012-02-02 20:06:15 +01:00
Holger Hans Peter Freyther f4a72bab38 isup: Generate properly formatted ISUP messages.
The structure of the code is not as clean as it could and should
be, the abstraction between the generic MessageStructure and ISUPMessage
is not good enough. Some ISUP corner cases are not handled well.
2012-02-02 19:55:27 +01:00
Holger Hans Peter Freyther adc964df90 isup: Begin with adding manual extension to the ISUP Code
There is no DSL for the bit fields yet and we want to shorten
the name of them anyway.
2012-02-02 19:55:27 +01:00
Holger Hans Peter Freyther dd1d0f384b isup: Fix the indention of the generated code 2012-01-20 16:59:16 +01:00
Holger Hans Peter Freyther 0a604c3e9b net: Inject the extension into the StreamSocket as well
This is mostly a hack and needs to be cleaned up.
2012-01-20 16:43:28 +01:00
Holger Hans Peter Freyther ca50ffe022 misc: Clean up the categories of the network module 2011-09-27 16:27:34 +02:00
Holger Hans Peter Freyther d7b2323602 ipa: Convert the two elements so we have two integers 2011-07-24 11:38:05 +02:00
Holger Hans Peter Freyther 5fd2eb9b11 ipa: Use displayString as it works on arrays and such as well 2011-07-24 11:37:45 +02:00
Holger Hans Peter Freyther 619df3f302 ipa: Make it easy to deal with the osmo extension header
Users of the API will not recognize if they have used an
OSMO Extension or the normal protocol.
2011-07-22 16:44:49 +02:00
Holger Hans Peter Freyther 15a382c883 sccp: Implement SCCInactivityTest creation and test it 2011-06-22 18:11:34 +02:00
Holger Hans Peter Freyther d77a361ba5 sccp: Use the String>>% anArray way to format error messages 2011-04-01 20:00:49 +02:00
Holger Hans Peter Freyther 6b40cc6866 msg: Work on a very generic parsing routine and test it on ISUP
The parsing routine should be able to be used for GSM 04.08,
08.08, ISUP and other parts. It should allow to have variable
sized length and tag fields etc. Right now it is not yet doing
all of what it should do.

E.g. the order of optional entries can be different, the code
assume an order right now.
2011-03-23 17:56:47 +01:00
Holger Hans Peter Freyther 1d0b0c1bb4 isup: Various changes and fixes to the MessageStructure
* Use parameterName instead of name to avoid funny effects.
* Handle tag only classes as fixed field with a zero lengthLength
* Make the structure classes return an instance of itself. This
  is a bit weird and will need more thinking.
2011-03-23 15:40:28 +01:00