https://github.com/mattn/gntp-send
command line program that send to growl using GNTP protocol.
https://github.com/mattn/gntp-send
Last synced: 5 months ago
JSON representation
command line program that send to growl using GNTP protocol.
- Host: GitHub
- URL: https://github.com/mattn/gntp-send
- Owner: mattn
- License: other
- Created: 2009-03-27T02:42:36.000Z (almost 17 years ago)
- Default Branch: master
- Last Pushed: 2017-09-01T08:32:33.000Z (over 8 years ago)
- Last Synced: 2025-04-08T23:16:45.674Z (9 months ago)
- Language: C
- Homepage: http://mattn.kaoriya.net/
- Size: 115 KB
- Stars: 55
- Watchers: 10
- Forks: 129
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gntp-send
=========
* a command line binary for sending notifications to Growl
* a library for integrating Growl into you C or C++ based applications
## Platforms
---------
Sending notifications from Windows/Linux/ Mac is supported. Unixes in general should be supported but are untested.
Notifications may be received by Growl on Mac or GrowlForWindows on Windows.
* windows
* linux /mac
## C Functions
-----------
```c
int growl(server, appname, notify, title, message, icon, password, url)
```
Send tcp notification. Currently this is supported only by GrowlForWindows
* `server` - hostname where Growl is running, port can optionally be specified e.g `localhost:23053`
* `appame` - name for application sending notification
* `tite` - notification title
* `message` - notification text
* `icon` - optional url or local file path for notification icon or NULL
* `password` - password for Growl
* `url` - website to direct user to if they click notification or NULL
```c
int growl_udp(server, appname, notify, title, message, icon, password, url)
```
Send udp notification. This is supported by both GrowlForWindows and Mac Growl.
As above except icon and url are ignored.
## C++ Objects
-----------
```cpp
Growl *grow = new Growl(protocol, password, appname, notifications, notifications_count);
growl->Notify(notification1, title, message);
growl->Notify(notification2, title, message);
```
## Building for MinGW
------------------
MinGW is basically gcc for Windows. make is required to build using MinGW.
To build the gntp-send.exe executable and libraries required for integration run
```cmd
mingw32-make -f Makefile.w32
```
## Building for Visual Studio
--------------------------
nmake is required to build using Visual Studio.
To build the gntp-send.exe executable and libraries required for integration run
```cmd
nmake -f Makefile.msc
```
## Building for UNIX
-----------------
Max OS X is basically a Unix variant and is covered by these instructions.
gcc/g++ and make are required for building.
To build gntp-send and the libraries required for integration run
```cmd
make -f Makefile
```
## Precompiled Binaries
--------------------
Peter Sinnott provided windows binaries, see:
https://github.com/psinnott/gntp-send
For ubuntu linux, use ppa:
https://launchpad.net/~mattn/+archive/gntp-send
## License
-------
gntp-send and libraries distributed under BSD license.
## Contributors
----------
Please fork on github, and send me pull-requests.
Note to keep my code style.
Authors
-------
Yasuhiro Matsumoto ``
Peter Sinnott ``
Dither ``