-
-
Notifications
You must be signed in to change notification settings - Fork 228
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix motionDoorbell & port pick, better quit ffmpeg
- Loading branch information
Showing
8 changed files
with
993 additions
and
1,399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
declare module 'pick-port' { | ||
namespace pickPort { | ||
type pickPortOptions = { | ||
type?: ('udp' | 'tcp'); | ||
ip?: string; | ||
minPort?: number; | ||
maxPort?: number; | ||
reserveTimeout?: number; | ||
}; | ||
|
||
type reserveOptions = { | ||
type: ('udp' | 'tcp'); | ||
ip: string; | ||
port: number; | ||
reserveTimeout: number; | ||
}; | ||
|
||
type isReservedOptions = { | ||
type: ('udp' | 'tcp'); | ||
ip: string; | ||
port: number; | ||
}; | ||
|
||
function reserve(options: reserveOptions): void; | ||
function isReserved(options: isReservedOptions): boolean; | ||
} | ||
|
||
function pickPort(options: pickPort.pickPortOptions): Promise<number>; | ||
|
||
export = pickPort; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters