Browse Source

Add Swift signature for sendToDevice

Adam Pritchard 8 years ago
parent
commit
607f1ed953
1 changed files with 1 additions and 0 deletions
  1. 1 0
      MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.h

+ 1 - 0
MobileLibrary/iOS/PsiphonTunnel/PsiphonTunnel/PsiphonTunnel.h

@@ -292,6 +292,7 @@ typedef NS_ENUM(NSInteger, PsiphonConnectionState)
  Implementing this method is *required* if whole device mode is enabled (and otherwise should not be implemented).
  Implementing this method is *required* if whole device mode is enabled (and otherwise should not be implemented).
  The implementation of this must send the given packet to the device.
  The implementation of this must send the given packet to the device.
  @param packet  The data packet to send to the device.
  @param packet  The data packet to send to the device.
+ Swift: @code func send(toDevice packet: NSMutableData) @endcode
  */
  */
 - (void)sendToDevice:(NSMutableData * _Nonnull)packet;
 - (void)sendToDevice:(NSMutableData * _Nonnull)packet;