Commit graph

92 commits

Author SHA1 Message Date
gambas
9b73e821ef Fix a file descriptor leak when a socket fails to connect.
[GB.NET]
* BUG: Fix a file descriptor leak when a socket fails to connect.
2018-10-12 17:12:06 +02:00
gambas
afd759b6b3 SerialPort: Port the stream routines to the new interface.
[GB.NET]
* BUG: SerialPort: Port the stream routines to the new interface. They just read and write directly now.
2017-10-15 23:18:04 +02:00
gambas
e02d028806 Socket: Don't implement custom Lof() and Eof() stream methods. Use the default ones.
[GB.NET]
* BUG: Socket: Don't implement custom Lof() and Eof() stream methods. Use the default ones.
2017-10-05 04:45:10 +02:00
gambas
9b0370eae0 Socket: Don't try to read just the available data. Just read what the users wants, and return the data actually read.
[GB.NET]
* BUG: Socket: Don't try to read just the available data. Just read what the users wants, and return the data actually read.
2017-09-30 19:27:40 +02:00
gambas
5bf2fad9f6 [GB.NET]
* BUG: Close socket on writing only if there is an error.
2017-09-29 00:27:49 +02:00
gambas
aa67ba1309 Rework the stream interface, so that the stream read & write methods just have to actually read or write the data.
[INTERPRETER]
* NEW: Rework the stream interface, so that the stream read & write methods just have to actually read or write the data.
2017-09-27 02:48:00 +02:00
Laurent Carlier
8dc6679530 Remove 'missing' file ,generated by autotools, from the repository 2017-08-13 16:13:06 +02:00
Benoît Minisini
82eddfd5c9 [CONFIGURATION]
* NEW: Remove all 'depcomp' files. Apparently they are not used anymore by autoconf.

[INTERPRETER]
* BUG: Fix some gcc 6 warnings.

[GB.DEBUG]
* BUG: Fix some gcc 6 warnings.

[GB.GTK]
* BUG: Fix some gcc 6 warnings.
* BUG: Fix a ';' mistake in a focus management test.

[GB.GTK3]
* BUG: Fix some gcc 6 warnings.
* BUG: Fix a ';' mistake in a focus management test.

[GB.IMAGE]
* BUG: Fix some gcc 6 warnings.


git-svn-id: svn://localhost/gambas/trunk@8101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-02-18 17:24:01 +00:00
Benoît Minisini
653afd7f88 [GB.NET]
* BUG: ServerSocket: Handle all error codes when listening.


git-svn-id: svn://localhost/gambas/trunk@7759 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-04 19:53:01 +00:00
Benoît Minisini
6f80d00888 [GB.NET]
* BUG: Some little fixes related to r7748.


git-svn-id: svn://localhost/gambas/trunk@7749 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-02 21:49:42 +00:00
Benoît Minisini
888a837352 [GB.NET]
* BUG: SerialPort: Correctly release the polling timer when the serial port is closed.


git-svn-id: svn://localhost/gambas/trunk@7579 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-01-16 15:58:57 +00:00
Benoît Minisini
cb63d9ef1f [CONFIGURATION]
* NEW: Support for GNU/Hurd.

[INTERPRETER]
* NEW: Support for GNU/Hurd.

[GB.NET]
* NEW: Support for GNU/Hurd.


git-svn-id: svn://localhost/gambas/trunk@6847 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-21 00:52:56 +00:00
Benoît Minisini
77670873a1 [GB.NET]
* BUG: Fix SerialPort.DTR property.


git-svn-id: svn://localhost/gambas/trunk@6804 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-04 02:19:34 +00:00
Benoît Minisini
d7f5c2816b [GB.NET]
* BUG: Fix the DnsClient properties description: it is synchronous by 
  default.


git-svn-id: svn://localhost/gambas/trunk@6664 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-11-23 02:16:34 +00:00
Benoît Minisini
05f31a83af [GB.NET]
* BUG: Fix a function declaration.


git-svn-id: svn://localhost/gambas/trunk@6586 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-10-29 21:12:10 +00:00
Nigel Gerrard
e0b9fc1eac [CONFIGURATION]
* BUG: Set Cygwin Shared Library Extension to dll

[GB.JIT]
* NEW: Add conditional defines for Cygwin to allow compile:
  Use finite in place of _finite, __isnand in place of __isnan
  and __isinfd in place of __isinf.

* NEW: Remove jit_gambas_pass_dummy.cpp as this is no longer
  required to compile with later versions of llvm. Also fixes
  issue with Cygwin compile.

[GB.NET]
* NEW: Redefine TIOCOUTQ for Cygwin

[GB.SDL.SOUND]
* NEW: -lSDL needed for Cygwin linker

[INTERPRETER]
* NEW: Redefine FIONREAD for Cygwin

* NEW: Cygwin needs <strings.h> to avoid compiler issues when
  redefining strcasecmp etc.
 
[DEVELOPMENT ENVIRONMENT]
* NEW: Make the environment Cygwin aware



git-svn-id: svn://localhost/gambas/trunk@6435 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-08-28 13:50:09 +00:00
Benoît Minisini
3dbf3ca320 [GB.NET]
* BUG: Fix a missing symbol lookup error.


git-svn-id: svn://localhost/gambas/trunk@6415 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-08-03 15:01:00 +00:00
Tobias Boege
218cfadb9b [GB.NET]
* NEW: DnsClient: defer async setup to when a query is made and release
  the pipe watch afterwards as soon as possible so that Gambas processes
  don't wait on non-active but existent watches.
* NEW: One can change the Async property of DnsClient now while it is
  active; the change applies to subsequent queries.

[EXAMPLES]
* BUG: DnsClient: Don't use the special _free() method.



git-svn-id: svn://localhost/gambas/trunk@6397 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-24 19:03:08 +00:00
Benoît Minisini
5e76433eeb [CONFIGURATION]
* NEW: Do not use deprecated autoconf macros anymore.
* NEW: The version information is now located in the 'version.m4' file in
  the source root directory.


git-svn-id: svn://localhost/gambas/trunk@6230 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-04-05 21:22:43 +00:00
Benoît Minisini
15e64b9484 [GB.NET]
* NEW: SerialPort.InputBufferSize is a new property that returns the number 
  of bytes in the internal input buffer.
* NEW: SerialPort.OutputBufferSize is a new property that returns the 
  number of bytes in the internal output buffer.


git-svn-id: svn://localhost/gambas/trunk@6124 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-02 14:13:00 +00:00
Benoît Minisini
458b289677 [GB.NET]
* NEW: Flushing a serial port stream now calls tcdrain() so that all 
  pending data is effectively sent.


git-svn-id: svn://localhost/gambas/trunk@6119 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-01 22:36:48 +00:00
Benoît Minisini
fb673982d7 [GB.NET]
* BUG: SocketServer: Reinitialize the timeout each time the blocking mode 
  changes.


git-svn-id: svn://localhost/gambas/trunk@5696 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-03 19:13:22 +00:00
Benoît Minisini
88ef7b2f0b [GB.NET]
* BUG: Socket: Reinitialize the timeout each time the blocking mode 
  changes.


git-svn-id: svn://localhost/gambas/trunk@5695 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-03 19:10:30 +00:00
Benoît Minisini
c404f04bb4 [GB.NET]
* BUG: Socket connection is not blocking anymore, like it was in Gambas 2.
* BUG: Fix DnsClient defaut event declaration.


git-svn-id: svn://localhost/gambas/trunk@5689 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-06-01 13:37:38 +00:00
Benoît Minisini
13dd04d5a4 [DEVELOPMENT ENVIRONMENT]
* BUG: Correctly initalize the help browser layout.
* NEW: Use the new Image.Fuzzy() method to draw a drop shadow in the 
  welcome screen text.

[COMPILER]
* NEW: The GB_PCODE_VERSION environment variable can take 'X.YY' as version 
  instead of 'X.YY.ZZZZ', which is actually useless.

[GB.COMPRESS]
* BUG: Remove useless code never compiled.

[GB.DBUS]
* BUG: Fix a possible memory leak in a debugging routine.

[GB.GSL]
* BUG: Remove useless code never compiled.

[GB.GTK]
* NEW: Implement a cairo surface cache in the Image class, so that drawing
  the same image several times trigger a GdkPixbuf -> Cairo surface 
  conversion once.
* BUG: Slider and Scrollbar controls now raise the Change event only if the
  value has really changed.

[GB.NET]
* BUG: Remove useless code never compiled.

[GB.NET.CURL]
* BUG: Remove useless code never compiled.

[GB.NET.SMTP]
* BUG: Remove useless code never compiled.

[GB.V4L]
* BUG: Remove useless code never compiled.


git-svn-id: svn://localhost/gambas/trunk@5489 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-01-03 22:06:35 +00:00
Benoît Minisini
7236dad76a [GB.NET]
* BUG: The type of the socket returned by SocketServer.Accept() method has
  now the same type than the server socket. Consequently, the RemoteHost, 
  RemotePort, LocalHost and LocalPort properties return the expected 
  values.


git-svn-id: svn://localhost/gambas/trunk@5416 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-12-07 02:27:42 +00:00
Benoît Minisini
f3f10a4167 [DEVELOPMENT ENVIRONMENT]
* BUG: Notes (TODO:, FIXME:, NOTE:) can be used in comments beginning with
  two quotes.

[INTERPRETER]
* BUG: Fix possible recursion problems while freeing signal handlers.
* BUG: The output of a process is sometimes woke up ready to read whereas 
  there is nothing to read on it. Close the output immediately instead of 
  calling the callback again and again.
* BUG: Try to handle correctly errors raised during the Kill event of a
  background task. It does not work yet. :-(
* NEW: Task.Running is a new property that returns if a background task is
  running.

[GB.NET]
* NEW: Add Net.CannotAuthenticate error constant for gb.net.pop3.

[GB.NET.POP3]
* BUG: Big interface clean-up so that it matches other networking classes.
* NEW: Add a Pop3Client.Debug property. Not all "Debug" instructions have 
  been replaced yet.
* NEW: The default value of the Port property is zero now. It is 
  automatically converted to 110 or 995 according to the encryption method.
* NEW: Use the Net class for Pop3Client.Status instead of specific 
  constants.
* NEW: Rename the _PopMessage virtual class in _Pop3Client_Message to 
  follow the standard naming scheme that the wiki loves.


git-svn-id: svn://localhost/gambas/trunk@5101 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-30 22:13:25 +00:00
Benoît Minisini
94a9df9c75 [GB.NET]
* NEW: SerialPort: Does the polling differently when detecting signal 
  changes.
* NEW: SerialPort.Open() method now takes an optional argument to define 
  the polling delay in milliseconds. It is 50ms by default.


git-svn-id: svn://localhost/gambas/trunk@5029 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-08-11 14:52:01 +00:00
Benoît Minisini
8ad1afe673 [CONFIGURATION]
* NEW: Print disabled components individually.

[GB.QT4]
* BUG: ComboBox background color is correctly handled now.


git-svn-id: svn://localhost/gambas/trunk@4739 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-18 01:19:15 +00:00
Benoît Minisini
96615a348b [GB.NET]
* BUG: ServerSocket: Do not use the static string returned by inet_ntoa() 
  for the Connection event argument. It can be erased by ohter calls to
  inet_ntoa()!


git-svn-id: svn://localhost/gambas/trunk@4728 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-13 14:52:21 +00:00
Benoît Minisini
e2fac79ffb [CONFIGURATION]
* NEW: Replace the old "INCLUDES" directive by "xxx_CPPFLAGS" in all 
  Makefile.am files.

[GB.XML]
* BUG: Remove debugging flags from compilation flags.


git-svn-id: svn://localhost/gambas/trunk@4714 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2012-05-04 16:45:14 +00:00
Benoît Minisini
dd3b512daf [CONFIGURATION]
* NEW: Update copyrights.


git-svn-id: svn://localhost/gambas/trunk@4384 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-12-31 02:39:20 +00:00
Benoît Minisini
200a429afc [DEVELOPMENT ENVIRONMENT]
* NEW: New "Gamabs" highlight theme.
* BUG: When showing the search dialog, the search text is correctly 
  selected in all cases now.
* BUG: Importing a report (or any form that is not a GUI form) now 
  correctly imports the class file.

[EXAMPLES]
* NEW: Add a text clipping example in the 'Painting' example.

[INTERPRETER]
* OPT: Replace() is now faster when the search string and the replace
  string are both one character length strings.

[COMPILER]
* NEW: The string escape character '\v' was added.

[GB.GTK]
* BUG: Paint.Text() now works correctly when the alignment is not 
  specified.

[GB.NET]
* BUG: Correctly check system errors when using a asynchronous DnsClient.

[GB.QT4]
* BUG: Paint.Save() and Paint.Restore() take the clipping path into account 
  now.

[GB.SETTINGS]
* NEW: Use a temporary file when saving a settings file, and always make a
  backup.

[GB.WEB]
* NEW: The Session.Modify() method was replaced by a read/write Modified 
  property.


git-svn-id: svn://localhost/gambas/trunk@4273 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-12-11 19:14:04 +00:00
Benoît Minisini
95aa370a7e [INTERPRETER]
* BUG: Do not use GB.ReturnNull() when returning a void string anymore. Use
  the new GB.ReturnVoidString() API instead.


git-svn-id: svn://localhost/gambas/trunk@4216 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-10-24 19:33:41 +00:00
Benoît Minisini
28a655eeec [GB.NET]
* BUG: Fix DnsClient in asynchronous mode.


git-svn-id: svn://localhost/gambas/trunk@4211 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-10-24 11:22:38 +00:00
Benoît Minisini
67ecd4b00a [INTERPRETER]
* NEW: New syntax for GB.AddString() and GB.ExtendString() interpreter API.
  Do not pass the string by reference anymore.
* NEW: GB.AddChar() is a new API for adding just a char to a string.

[GB.DB.SQLITE2]
* BUG: Fix ignored system call return values.

[GB.DB.SQLITE3]
* BUG: Fix ignored system call return values.

[GB.DB.NET]
* BUG: Fix ignored system call return values.

[GB.V4L]
* BUG: Remove some unused local variables.


git-svn-id: svn://localhost/gambas/trunk@4105 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-07 19:43:11 +00:00
Benoît Minisini
2901c85ea7 [GB.NET]
* NEW: Remove the Net.MaxPathLength constant.


git-svn-id: svn://localhost/gambas/trunk@4082 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-09-04 09:45:44 +00:00
Benoît Minisini
9488c7aff7 [DEVELOPMENT ENVIRONMENT]
* NEW: Automatic completion now displays hidden symbols if the class is 
  part of the current project.
* NEW: Support for *.tar.xz source archives.
* NEW: Underscores are now allowed inside a class name.
* BUG: Enabling or disabling tooltips in the option dialog does not crash
  anymore.

[INTERPRETER]
* NEW: Rename many virtual classes everywhere so that the documentation can
  easily extract the property name of the parent class from the virtual
  class name. For example, ".ApplicationArgs" is now ".Application.Args".


git-svn-id: svn://localhost/gambas/trunk@4028 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-21 21:46:20 +00:00
Benoît Minisini
6e6d9fd916 [CONFIGURATION]
* BUG: Remove generated ltmain.sh files.


git-svn-id: svn://localhost/gambas/trunk@4007 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-08-10 22:18:30 +00:00
Benoît Minisini
2fbf67cb29 [CONFIGURATION]
* NEW: Update FSF address in every source file.


git-svn-id: svn://localhost/gambas/trunk@3870 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-06-03 00:51:09 +00:00
Benoît Minisini
5e91ded94f [INTERPRETER]
* BUG: Fix the use of boolean in the interpreter API.
* NEW: Change the GB.New() API signature, and update all components 
  accordingly.


git-svn-id: svn://localhost/gambas/trunk@3846 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2011-05-16 02:16:22 +00:00
Benoît Minisini
c275829ddc [DEVELOPMENT ENVIRONMENT]
* BUG: The control rename algorithm should work better now.

[EXAMPLES]
* BUG: Fix ServerSocket and ClientSocket examples.

[INTERPRETER]
* BUG: WRITE and READ with a specified length of zero now does nothing.

[GB.NET]
* BUG: Closing a socket created by a ServerSocket does not crash anymore.

[GB.QT4]
* BUG: When a combo-box becomes read-only, the first item is automatically 
  selected if there was no current item.
* BUG: Window with no border can have focus now.



git-svn-id: svn://localhost/gambas/trunk@3404 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-28 21:58:42 +00:00
Benoît Minisini
b3e83433c6 [GB.NET]
* NEW: Socket.Server is a new property that returns the ServerSocket that
  eventually created the Socket with its Accept() method.


git-svn-id: svn://localhost/gambas/trunk@3403 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-28 15:37:34 +00:00
Benoît Minisini
b15fea4e1b [DEVELOPMENT ENVIRONMENT]
* BUG: Do not display the internal self-component in the project property 
  component list.

[GB.FORM]
* NEW: Bookmarks are editable now.


git-svn-id: svn://localhost/gambas/trunk@3355 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-11 01:55:35 +00:00
Benoît Minisini
22d3945361 [GB.NET]
* BUG: Fix duplicate declaration of SerialStream structure.


git-svn-id: svn://localhost/gambas/trunk@3353 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-10 00:44:04 +00:00
Benoît Minisini
634b584ae3 [GB.NET]
* BUG: Make gb.net compile correctly on FreeBSD.


git-svn-id: svn://localhost/gambas/trunk@3351 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-12-08 17:21:36 +00:00
Benoît Minisini
9307500dcb [GB.NET]
* BUG: Use the target port correctly when writing to an UdpSocket.
* BUG: Zero is a possible file descriptor for an UdpSocket.


git-svn-id: svn://localhost/gambas/trunk@3130 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-24 15:27:47 +00:00
Benoît Minisini
e60daf35b1 [GB.NET]
* BUG: Make the component compile on 32 bits OS.


git-svn-id: svn://localhost/gambas/trunk@3129 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-24 10:59:05 +00:00
Benoît Minisini
eb94949c92 [DEVELOPMENT ENVIRONMENT]
* NEW: More snippets for declaring local variables: "di" declares an 
  integer variable, "ds" a string variable...

[GB.IMAGE]
* NEW: Image.FillRect() ignores transparency. But a new Image.DrawRect() 
  method takes it into account now.

[GB.QT4]
* BUG: Mouse event properties are enabled now during a double click event 
  handler.

[GB.WEB]
* NEW: HTTP compression is automatically enabled if the response is 
  buffered, and if the HTTP client can handle it of course.


git-svn-id: svn://localhost/gambas/trunk@3128 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-24 10:56:55 +00:00
Benoît Minisini
012c31e8fd [GB.NET]
* BUG: Fix an apparently useless referencement in DnsClient.


git-svn-id: svn://localhost/gambas/trunk@3127 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2010-08-23 21:33:24 +00:00