AutoUnpack - Public TCP/IP interface
As of version 3.6 AutoUnpack has a public interface which can be used to control AutoUnpack, and to receive events from AutoUnpack..
Remember.. This interface is still very much in development.. It is primarily implemented for usenet readers, so they can determine if it is needed to download more par2 files..
AutoUnpack is default listening on TCP/IP port 19737 (can be changed on the Advanced Settings page)..
Your software has to connect (using sockets) to this port, after that you can send messages, and receive events...
Here you can download a sample program that is created in MFC (C++): click here
| Command | Description | Return Event |
| CONNECT NameOfYourSoftware | Connect to AutoUnpack | EVENT CONNECT OK |
| START | Pushes the start button | EVENT START OK |
| STOP | Pushes the stop button | EVENT STOP OK |
| REFRESH | Pushes the refresh button | EVENT REFRESH OK |
| CLOSE | Closes AutoUnpack | EVENT CLOSE OK |
| PING | Can be used to see if the connection to AU is still valid | EVENT PING OK |
| STATUS | Get the busy state of AU | EVENT STATUS BUSY EVENT STATUS IDLE |
| PROCESS "ArchiveName" | Begin processing a specific archive. e.g. alt.binaries.nl\test | EVENT PROCESS ERROR EVENT PROCESS OK |
| GET_ARCHIVE_NAME "FileName" | Use AU's logic to determine the Archive name of a file e.g. alt.binaries.nl\test.part01.rar | EVENT ARCHIVE_NAME ERROR EVENT ARCHIVE_NAME "ArchiveName" |
| GET_FILE_TYPE "FileName" | Use AU's logic to get the filetype of a file e.g. alt.binaries.nl\test.part01.rar | EVENT FILE_TYPE ERROR EVENT FILE_TYPE "FileType" |
| Other Events | Description | |
| JOIN OK "ArchiveName" | This event will be sent when AU has succeeded to join a splitted-file-archive | |
| JOIN FAILED "ArchiveName" | This event will be sent when AU has failed to join a splitted-file-archive | |
| REPAIR OK "ArchiveName" | This event will be sent when AU has succeeded to repair an archive | |
| REPAIR FAILED "ArchiveName" | This event will be sent when AU has failed to repair an archive | |
| UNPACK OK "ArchiveName" | This event will be sent when AU has succeeded to unpack an archive | |
| UNPACK FAILED "ArchiveName" | This event will be sent when AU has failed to unpack an archive | |
| File types | ||
| FT_RAR FT_PARTX_RAR FT_RX1 FT_RAR_XX1 FT_XX1 FT_PAR2 FT_SFV FT_NFO FT_NZB FT_PAR |
||